Skip to contentSkip to conversation

access: disable phys-bits=36 for now

PATCH Superseded Paolo Bonzini 4 participants 5 messages May 28, 2020 – May 29, 2020 KVM

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Paolo Bonzini

author maintainer
#0 lore raw

PATCH 1/1 access: disable phys-bits=36 for now

Support for guest-MAXPHYADDR < host-MAXPHYADDR is not upstream yet, it should not be enabled. Otherwise, all the pde.36 and pte.36 fail and the test takes so long that it times out.

---
 x86/unittests.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/unittests.cfg +1 -1
index bf0d02e..d658bc8 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
 
 [smap]
 file = smap.flat
Signature · 1 line
2.26.2
Tested-by on v1 1/1
#1 lore raw
Quoted 15 lines · Paolo Bonzini

Support for guest-MAXPHYADDR < host-MAXPHYADDR is not upstream yet, it should not be enabled. Otherwise, all the pde.36 and pte.36 fail and the test takes so long that it times out.

---
 x86/unittests.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/unittests.cfg +0 -0
index bf0d02e..d658bc8 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
 
 [smap]
 file = smap.flat

Works both VMX and SVM, thanks!

Signature · 1 line
Vitaly
#2 lore raw
Quoted 23 lines · Vitaly Kuznetsov
Quoted 21 lines · Paolo Bonzini

Support for guest-MAXPHYADDR < host-MAXPHYADDR is not upstream yet, it should not be enabled. Otherwise, all the pde.36 and pte.36 fail and the test takes so long that it times out.

---
 x86/unittests.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/unittests.cfg +1 -1
index bf0d02e..d658bc8 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
 
Quoted 4 lines

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

Quoted 2 lines
x86/unittests.cfg +0 -0
 [smap]
 file = smap.flat

Works both VMX and SVM, thanks!

What's the status of the "guest-MAXPHYADDR < host-MAXPHYADDR" work? I ask because the AC_PTE_BIT51 and AC_PDE_BIT51 subtests are broken on CPUs with 52 bit PAs. Is it worth sending a patch to temporarily disable those tests if MAXPHYADDR=52?

author maintainer
#3 lore raw
Quoted 24 lines · Sean Christopherson
Quoted 23 lines · Vitaly Kuznetsov
Quoted 21 lines · Paolo Bonzini

Support for guest-MAXPHYADDR < host-MAXPHYADDR is not upstream yet, it should not be enabled. Otherwise, all the pde.36 and pte.36 fail and the test takes so long that it times out.

---
 x86/unittests.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/unittests.cfg +1 -1
index bf0d02e..d658bc8 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
 
Quoted 6 lines
Quoted 4 lines

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

Quoted 2 lines
x86/unittests.cfg +0 -0
 [smap]
 file = smap.flat

Works both VMX and SVM, thanks!

What's the status of the "guest-MAXPHYADDR < host-MAXPHYADDR" work?

Mohammed was working on it, we should have it in 5.9.

Quoted 3 lines

I ask because the AC_PTE_BIT51 and AC_PDE_BIT51 subtests are broken on CPUs with 52 bit PAs. Is it worth sending a patch to temporarily disable those tests if MAXPHYADDR=52?

It's a QEMU bug that it does not enable host_phys_bits=on by default for "-cpu host". For now I'll tweak this patch to add it manually.

Paolo

#4 lore raw
Quoted 40 lines · Paolo Bonzini
Quoted 26 lines · Sean Christopherson
Quoted 25 lines · Vitaly Kuznetsov
Quoted 23 lines · Paolo Bonzini

Support for guest-MAXPHYADDR < host-MAXPHYADDR is not upstream yet,
it should not be enabled. Otherwise, all the pde.36 and pte.36 fail and the test takes so long that it times out.

---
 x86/unittests.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/unittests.cfg +0 -0
index bf0d02e..d658bc8 100644
@@ -116,7 +116,7 @@ extra_params = -cpu qemu64,+x2apic,+tsc-

deadline -append tscdeadline_immed
[access]
file = access.flat
arch = x86_64

x86/unittests.cfg +1 -1
-extra_params = -cpu host,phys-bits=36
+extra_params = -cpu host
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

[smap]
file = smap.flat

Works both VMX and SVM, thanks!

What's the status of the "guest-MAXPHYADDR < host-MAXPHYADDR" work?

Mohammed was working on it, we should have it in 5.9.

Quoted 4 lines

I ask because the AC_PTE_BIT51 and AC_PDE_BIT51 subtests are broken on CPUs with 52 bit PAs. Is it worth sending a patch to temporarily
disable those tests if MAXPHYADDR=52?

Quoted 6 lines

It's a QEMU bug that it does not enable host_phys_bits=on by default for
"-cpu host". For now I'll tweak this patch to add it manually.

Paolo

I actually did send a fix earlier

https://www.spinics.net/lists/kvm/msg215716.html