diff options
author | Marc Zyngier <maz@kernel.org> | 2019-06-28 22:40:58 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-07-07 09:28:38 +0100 |
commit | e47c2055c68e06977d7d8b7dbc2f7468a36d3658 (patch) | |
tree | 4732dd60f6a3d177244721095348c218f3f9db39 /arch/arm64/kvm/reset.c | |
parent | 5b78077a00f8109f7a4717b19309ef0a76d73372 (diff) | |
download | linux-e47c2055c68e06977d7d8b7dbc2f7468a36d3658.tar.gz linux-e47c2055c68e06977d7d8b7dbc2f7468a36d3658.tar.bz2 linux-e47c2055c68e06977d7d8b7dbc2f7468a36d3658.zip |
KVM: arm64: Make struct kvm_regs userspace-only
struct kvm_regs is used by userspace to indicate which register gets
accessed by the {GET,SET}_ONE_REG API. But as we're about to refactor
the layout of the in-kernel register structures, we need the kernel to
move away from it.
Let's make kvm_regs userspace only, and let the kernel map it to its own
internal representation.
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/kvm/reset.c')
-rw-r--r-- | arch/arm64/kvm/reset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/reset.c b/arch/arm64/kvm/reset.c index d3b209023727..8ca8607f5a9f 100644 --- a/arch/arm64/kvm/reset.c +++ b/arch/arm64/kvm/reset.c @@ -288,7 +288,7 @@ int kvm_reset_vcpu(struct kvm_vcpu *vcpu) /* Reset core registers */ memset(vcpu_gp_regs(vcpu), 0, sizeof(*vcpu_gp_regs(vcpu))); - vcpu_gp_regs(vcpu)->regs.pstate = pstate; + vcpu_gp_regs(vcpu)->pstate = pstate; /* Reset system registers */ kvm_reset_sys_regs(vcpu); |