From: Thomas Huth Date: Wed, 22 Jul 2020 04:40:25 +0000 (+0200) Subject: qga/qapi-schema: Document -1 for invalid PCI address fields X-Git-Tag: qemu-xen-4.15.0~25^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ba620541d0db7e3433babbd97c0413a371e6fb4a;p=qemu-xen.git qga/qapi-schema: Document -1 for invalid PCI address fields The "guest-get-fsinfo" could also be used for non-PCI devices in the future. And the code in GuestPCIAddress() in qga/commands-win32.c seems to be using "-1" for fields that it can not determine already. Thus let's properly document "-1" as value for invalid PCI address fields. Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth Signed-off-by: Michael Roth --- diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json index 4be9aad48e..408a662ea5 100644 --- a/qga/qapi-schema.json +++ b/qga/qapi-schema.json @@ -846,7 +846,7 @@ ## # @GuestDiskAddress: # -# @pci-controller: controller's PCI address +# @pci-controller: controller's PCI address (fields are set to -1 if invalid) # @bus-type: bus type # @bus: bus id # @target: target id