lkml.org 
[lkml]   [2022]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2 8/9] KVM: x86: lapic does not have to process INIT if it is blocked
From
On 8/17/22 16:11, Maxim Levitsky wrote:
>
> While reviwing this, I noticed that we have this code:
>
>
> static bool svm_apic_init_signal_blocked(struct kvm_vcpu *vcpu)
> {
> struct vcpu_svm *svm = to_svm(vcpu);
>
> /*
> * TODO: Last condition latch INIT signals on vCPU when
> * vCPU is in guest-mode and vmcb12 defines intercept on INIT.
> * To properly emulate the INIT intercept,
> * svm_check_nested_events() should call nested_svm_vmexit()
> * if an INIT signal is pending.
> */
> return !gif_set(svm) ||
> (vmcb_is_intercept(&svm->vmcb->control, INTERCEPT_INIT));
> }
>
> Is this workaround still needed? svm_check_nested_events does check
> the apic's INIT/SIPI status.
>
> Currently the '.apic_init_signal_blocked' is called from
> kvm_vcpu_latch_init which itself is currently called from
> kvm_vcpu_latch_init which happens after we would vmexit if INIT is
> intercepted by nested hypervisor.
No, it shouldn't be needed anymore.

Paolo

\
 
 \ /
  Last update: 2022-08-17 17:34    [W:0.072 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site