Skip to contentSkip to conversation

x86/access: Fix phys-bits parameter

PATCH In review Mohammed Gamal 2 participants 2 messages May 13, 2020 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/access: Fix phys-bits parameter

Some QEMU versions don't support setting phys-bits argument directly. This causes breakage to Travis CI. Work around the bug by setting host-phys-bits=on

Fixes 1a296ac170f ("x86: access: Add tests for reserved bits of guest physical address")
---
 x86/unittests.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/unittests.cfg +1 -1
index bf0d02e..d43cac2 100644
@@ -116,7 +116,7 @@ extra_params = -cpu qemu64,+x2apic,+tsc-deadline -append tscdeadline_immed
 [access]
 file = access.flat
 arch = x86_64
-extra_params = -cpu host,phys-bits=36
+extra_params = -cpu host,host-phys-bits=on,phys-bits=36
 
 [smap]
 file = smap.flat
Signature · 1 line
2.25.2
Tested-by on v1 1/1
#1 lore raw
Quoted 18 lines · Mohammed Gamal

Some QEMU versions don't support setting phys-bits argument directly. This causes breakage to Travis CI. Work around the bug by setting host-phys-bits=on

Fixes 1a296ac170f ("x86: access: Add tests for reserved bits of guest physical address")
---
 x86/unittests.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/unittests.cfg +0 -0
index bf0d02e..d43cac2 100644

x86/unittests.cfg extra_params = -cpu qemu64,+x2apic,+tsc-deadline -append tscdeadline_immed · line 122

Quoted 8 lines
x86/unittests.cfg +1 -1
@@ -116,7 +116,7 @@ extra_params = -cpu qemu64,+x2apic,+tsc-deadline -append tscdeadline_immed
 [access]
 file = access.flat
 arch = x86_64
-extra_params = -cpu host,phys-bits=36
+extra_params = -cpu host,host-phys-bits=on,phys-bits=36
 
 [smap]
 file = smap.flat