Commit 306e0afb authored by Roger Pau Monné's avatar Roger Pau Monné Committed by Jan Beulich

test/tsx: set grant version for created domains

Set the grant table version for the created domains to use version 1,
as such tests domains don't require the usage of the grant table at
all. A TODO note is added to switch those dummy domains to not have a
grant table at all when possible. Without setting the grant version
the domains for the tests cannot be created.

Fixes: 7379f9e1 ('gnttab: allow setting max version per-domain')
Reported-by: default avatarAndrew Cooper <>
Reported-by: default avatarJan Beulich <>
Signed-off-by: default avatarRoger Pau Monné <>
Reviewed-by: default avatarJan Beulich <>
Release-Acked-by: default avatarIan Jackson <>
parent 810fbc03
......@@ -444,6 +444,7 @@ static void test_guests(void)
struct xen_domctl_createdomain c = {
.max_vcpus = 1,
.max_grant_frames = 1,
.grant_opts = XEN_DOMCTL_GRANT_version(1),
printf("Testing PV guest\n");
......@@ -456,6 +457,7 @@ static void test_guests(void)
.flags = XEN_DOMCTL_CDF_hvm,
.max_vcpus = 1,
.max_grant_frames = 1,
.grant_opts = XEN_DOMCTL_GRANT_version(1),
.arch = {
.emulation_flags = XEN_X86_EMU_LAPIC,
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment