OSDN Git Service

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)
commit0bec140fb6c106a70aac183e5fa99de0ef1d161a
tree2b960a4493107bf03a50115752c6ef9a4105a63a
parent7a6629ef746d1a50cc9247bd7c92ce6b38b8ed68
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