From: Roger Pau Monné Date: Wed, 17 Nov 2021 07:13:02 +0000 (+0100) Subject: tests/resource: set grant version for created domains X-Git-Tag: 4.16.0-rc4~10 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=810fbc03ff51275d9603b9896c9085d645733ed8;p=xen.git tests/resource: set grant version for created domains Set the grant table version for the created domains to use version 1, as that's the used by the test cases. Without setting the grant version the domains for the tests cannot be created. Fixes: 7379f9e10a ('gnttab: allow setting max version per-domain') Reported-by: Andrew Cooper Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper Reviewed-by: Jan Beulich Release-Acked-by: Ian Jackson --- diff --git a/tools/tests/resource/test-resource.c b/tools/tests/resource/test-resource.c index 988f96f7c1..0557f8a1b5 100644 --- a/tools/tests/resource/test-resource.c +++ b/tools/tests/resource/test-resource.c @@ -120,6 +120,7 @@ static void test_domain_configurations(void) .create = { .max_vcpus = 2, .max_grant_frames = 40, + .grant_opts = XEN_DOMCTL_GRANT_version(1), }, }, { @@ -128,6 +129,7 @@ static void test_domain_configurations(void) .flags = XEN_DOMCTL_CDF_hvm, .max_vcpus = 2, .max_grant_frames = 40, + .grant_opts = XEN_DOMCTL_GRANT_version(1), .arch = { .emulation_flags = XEN_X86_EMU_LAPIC, }, @@ -140,6 +142,7 @@ static void test_domain_configurations(void) .flags = XEN_DOMCTL_CDF_hvm | XEN_DOMCTL_CDF_hap, .max_vcpus = 2, .max_grant_frames = 40, + .grant_opts = XEN_DOMCTL_GRANT_version(1), }, }, #endif