diff options
author | Sean Christopherson <seanjc@google.com> | 2022-04-15 02:43:42 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-21 19:16:10 +0200 |
commit | fdd6f6ac2e489b9b256cd05a880d13bfdbac7c2e (patch) | |
tree | 764c379c6ec7bd8c289bed29399649250bb8c496 /arch/riscv/include/asm | |
parent | KVM: x86: Don't re-acquire SRCU lock in complete_emulated_io() (diff) | |
download | linux-fdd6f6ac2e489b9b256cd05a880d13bfdbac7c2e.tar.xz linux-fdd6f6ac2e489b9b256cd05a880d13bfdbac7c2e.zip |
KVM: RISC-V: Use kvm_vcpu.srcu_idx, drop RISC-V's unnecessary copy
Use the generic kvm_vcpu's srcu_idx instead of using an indentical field
in RISC-V's version of kvm_vcpu_arch. Generic KVM very intentionally
does not touch vcpu->srcu_idx, i.e. there's zero chance of running afoul
of common code.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220415004343.2203171-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/riscv/include/asm')
-rw-r--r-- | arch/riscv/include/asm/kvm_host.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/riscv/include/asm/kvm_host.h b/arch/riscv/include/asm/kvm_host.h index 78da839657e5..cd4bbcecb0fb 100644 --- a/arch/riscv/include/asm/kvm_host.h +++ b/arch/riscv/include/asm/kvm_host.h @@ -193,9 +193,6 @@ struct kvm_vcpu_arch { /* Don't run the VCPU (blocked) */ bool pause; - - /* SRCU lock index for in-kernel run loop */ - int srcu_idx; }; static inline void kvm_arch_hardware_unsetup(void) {} |