vPCI: test harness adjustments
cover vPCI: test harness adjustments
1: add test harness entry to ./MAINTAINERS
2: fix test harness build
Jan
PATCH 1/2 vPCI: add test harness entry to ./MAINTAINERS
MAINTAINERS +1 -0
@@ -568,6 +568,7 @@ VPCI M: Roger Pau Monné <[email protected]> S: Supported +F: tools/tests/vpci/ F: xen/drivers/vpci/ F: xen/include/xen/vpci.h
Re: [PATCH 1/2] vPCI: add test harness entry to ./MAINTAINERS
Quoted 1 line · Jan Beulich
Signed-off-by Jan Beulich <[email protected]>
Thanks, Roger.
PATCH 2/2 vPCI: fix test harness build
In reply to Jan BeulichThe earlier commit introduced two uses of is_hardware_domain().
tools/tests/vpci/emul.h +2 -0
@@ -82,6 +82,8 @@ typedef union {#define __hwdom_init +#define is_hardware_domain (d) ((void)(d), false) +#define has_vpci (d) true#define xzalloc (type) ((type *)calloc(1, sizeof(type)))
Re: [PATCH 2/2] vPCI: fix test harness build
Quoted 5 lines · Jan Beulich
The earlier commit introduced two uses of
is_hardware_domain().Fixes 465217b0f872 ("vPCI: account for hidden devices")Reported-by Andrew Cooper <[email protected]>Signed-off-by Jan Beulich <[email protected]>
We do rely on the compiler always removing the call to pci_get_pdev(dom_xen, ...) or AFAICT that would also trigger an error as there's no definition of dom_xen in this scope.
Thanks, Roger.
Re: [PATCH 2/2] vPCI: fix test harness build
Quoted 8 lines · Roger Pau Monné
Quoted 5 lines · Jan Beulich
The earlier commit introduced two uses of
is_hardware_domain().Fixes 465217b0f872 ("vPCI: account for hidden devices")Reported-by Andrew Cooper <[email protected]>Signed-off-by Jan Beulich <[email protected]>Acked-by Roger Pau Monné <[email protected]>
Thanks.
Quoted 3 lines
We do rely on the compiler always removing the call to
pci_get_pdev(dom_xen, ...)or AFAICT that would also trigger an error as there's no definition ofdom_xenin this scope.
Not really, no. The stub macro itself discards all its arguments:
#define pci_get_pdev(...) (&test_pdev)
Jan