diff options
author | Ravi Bangoria <ravi.bangoria@linux.ibm.com> | 2020-12-16 11:42:18 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2021-02-10 04:31:08 +0100 |
commit | bd1de1a0e6eff4bde5ceae969673b85b8446fd6a (patch) | |
tree | 543fdbe810211e27e2e089697188810301d9643a /arch/powerpc/kernel/asm-offsets.c | |
parent | KVM: PPC: Book3S HV: Rename current DAWR macros and variables (diff) | |
download | linux-bd1de1a0e6eff4bde5ceae969673b85b8446fd6a.tar.xz linux-bd1de1a0e6eff4bde5ceae969673b85b8446fd6a.zip |
KVM: PPC: Book3S HV: Add infrastructure to support 2nd DAWR
KVM code assumes single DAWR everywhere. Add code to support 2nd DAWR.
DAWR is a hypervisor resource and thus H_SET_MODE hcall is used to set/
unset it. Introduce new case H_SET_MODE_RESOURCE_SET_DAWR1 for 2nd DAWR.
Also, KVM will support 2nd DAWR only if CPU_FTR_DAWR1 is set.
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/kernel/asm-offsets.c')
-rw-r--r-- | arch/powerpc/kernel/asm-offsets.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c index 410b8c47443f..4771a8511216 100644 --- a/arch/powerpc/kernel/asm-offsets.c +++ b/arch/powerpc/kernel/asm-offsets.c @@ -528,6 +528,8 @@ int main(void) OFFSET(VCPU_DABRX, kvm_vcpu, arch.dabrx); OFFSET(VCPU_DAWR0, kvm_vcpu, arch.dawr0); OFFSET(VCPU_DAWRX0, kvm_vcpu, arch.dawrx0); + OFFSET(VCPU_DAWR1, kvm_vcpu, arch.dawr1); + OFFSET(VCPU_DAWRX1, kvm_vcpu, arch.dawrx1); OFFSET(VCPU_CIABR, kvm_vcpu, arch.ciabr); OFFSET(VCPU_HFLAGS, kvm_vcpu, arch.hflags); OFFSET(VCPU_DEC, kvm_vcpu, arch.dec); |