Re: [PATCH v2] KVM: PPC: Book3S HV: Sanitise vcpu registers in nested path

2021-04-07 Thread Fabiano Rosas
Nicholas Piggin writes: >> static void restore_hv_regs(struct kvm_vcpu *vcpu, struct hv_guest_state >> *hr) >> @@ -324,9 +340,10 @@ long kvmhv_enter_nested_guest(struct kvm_vcpu *vcpu) >> mask = LPCR_DPFD | LPCR_ILE | LPCR_TC | LPCR_AIL | LPCR_LD | >> LPCR_LPES | LPCR_MER; >

Re: [PATCH v2] KVM: PPC: Book3S HV: Sanitise vcpu registers in nested path

2021-04-07 Thread Nicholas Piggin
Excerpts from Fabiano Rosas's message of April 7, 2021 7:46 am: > As one of the arguments of the H_ENTER_NESTED hypercall, the nested > hypervisor (L1) prepares a structure containing the values of various > hypervisor-privileged registers with which it wants the nested guest > (L2) to run. Since t

[PATCH v2] KVM: PPC: Book3S HV: Sanitise vcpu registers in nested path

2021-04-06 Thread Fabiano Rosas
As one of the arguments of the H_ENTER_NESTED hypercall, the nested hypervisor (L1) prepares a structure containing the values of various hypervisor-privileged registers with which it wants the nested guest (L2) to run. Since the nested HV runs in supervisor mode it needs the host to write to these