summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/lib
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-05-03 14:48:59 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-11 11:47:26 -0400
commit38081d28835c84e73ff414f23663d57946cc2234 (patch)
treeb55a3683ab6f0b615782fbca0f156c6cadec7013 /tools/testing/selftests/kvm/lib
parent6e1d13bf3815d6058620dd72135be292d9f44bc9 (diff)
KVM: selftests: Trust that MAXPHYADDR > memslot0 in vmx_apic_access_test
Use vm->max_gfn to compute the highest gpa in vmx_apic_access_test, and blindly trust that the highest gfn/gpa will be well above the memory carved out for memslot0. The existing check is beyond paranoid; KVM doesn't support CPUs with host.MAXPHYADDR < 32, and the selftests are all kinds of hosed if memslot0 overlaps the local xAPIC, which resides above "lower" (below 4gb) DRAM. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib')
0 files changed, 0 insertions, 0 deletions