projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df938a5
)
KVM: PPC: Book3S HV nestedv2: Avoid msr check in kvmppc_handle_exit_hv()
author
Jordan Niethe
<jniethe5@gmail.com>
Fri, 1 Dec 2023 13:26:13 +0000
(18:56 +0530)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 7 Dec 2023 12:33:07 +0000
(23:33 +1100)
The msr check in kvmppc_handle_exit_hv() is not needed for nestedv2 hosts,
skip the check to avoid a H_GUEST_GET_STATE hcall.
Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://msgid.link/20231201132618.555031-9-vaibhav@linux.ibm.com
arch/powerpc/kvm/book3s_hv.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kvm/book3s_hv.c
b/arch/powerpc/kvm/book3s_hv.c
index 4dc6a928073f1598cb5c11e47adf772b5e11475a..47fe470375dfbe91b7cfb08a21a76a8db4ebe7bf 100644
(file)
--- a/
arch/powerpc/kvm/book3s_hv.c
+++ b/
arch/powerpc/kvm/book3s_hv.c
@@
-1597,7
+1597,7
@@
static int kvmppc_handle_exit_hv(struct kvm_vcpu *vcpu,
* That can happen due to a bug, or due to a machine check
* occurring at just the wrong time.
*/
- if (
__kvmppc_get_msr_hv(vcpu) & MSR_HV
) {
+ if (
!kvmhv_is_nestedv2() && (__kvmppc_get_msr_hv(vcpu) & MSR_HV)
) {
printk(KERN_EMERG "KVM trap in HV mode!\n");
printk(KERN_EMERG "trap=0x%x | pc=0x%lx | msr=0x%llx\n",
vcpu->arch.trap, kvmppc_get_pc(vcpu),