]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: selftests: add vcpu support for aarch64
authorAndrew Jones <drjones@redhat.com>
Tue, 18 Sep 2018 17:54:31 +0000 (19:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:26:56 +0000 (00:26 +0200)
commitc26ec8152410defd70b9f29d3a7f912e74ff57e6
tree2b960a4493107bf03a50115752c6ef9a4105a63a
parent39942aedff25f6660b95c0a2eda250902c97b917
kvm: selftests: add vcpu support for aarch64

This code adds VM and VCPU setup code for the VM_MODE_FLAT48PG mode.
The VM_MODE_FLAT48PG isn't yet fully supportable, as it defines the
guest physical address limit as 52-bits, and KVM currently only
supports guests with up to 40-bit physical addresses (see
KVM_PHYS_SHIFT). VM_MODE_FLAT48PG will work fine, though, as long as
no >= 40-bit physical addresses are used.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/aarch64/processor.h [new file with mode: 0644]
tools/testing/selftests/kvm/lib/aarch64/processor.c