]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Use vm->pa_bits to generate reserved PA bits
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:06:48 +0000 (20:06 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:17 +0000 (18:14 -0700)
commitab228e895c3a0765da27245320736d0c7ee8b3bc
treeb2886e318d286bfb813f837874056e0f15f454b5
parent597efe6f97009456aa1b9c599122a64869d3332f
KVM: selftests: Use vm->pa_bits to generate reserved PA bits

Use vm->pa_bits to generate the mask of physical address bits that are
reserved in page table entries.  vm->pa_bits is set when the VM is
created, i.e. it's guaranteed to be valid when populating page tables.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220614200707.3315957-24-seanjc@google.com
tools/testing/selftests/kvm/lib/x86_64/processor.c