[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YO37fMf/verI0QYR@google.com>
Date: Tue, 13 Jul 2021 20:45:48 +0000
From: Sean Christopherson <seanjc@...gle.com>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: isaku.yamahata@...el.com, Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
"H . Peter Anvin" <hpa@...or.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>,
Wanpeng Li <wanpengli@...cent.com>,
Jim Mattson <jmattson@...gle.com>,
Joerg Roedel <joro@...tes.org>, erdemaktas@...gle.com,
Connor Kuehl <ckuehl@...hat.com>, x86@...nel.org,
linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
isaku.yamahata@...il.com,
Sean Christopherson <sean.j.christopherson@...el.com>
Subject: Re: [RFC PATCH v2 63/69] KVM: VMX: Move .get_interrupt_shadow()
implementation to common VMX code
On Tue, Jul 06, 2021, Paolo Bonzini wrote:
> On 03/07/21 00:05, isaku.yamahata@...el.com wrote:
> > diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
> > index d69d4dc7c071..d31cace67907 100644
> > --- a/arch/x86/kvm/vmx/vmx.c
> > +++ b/arch/x86/kvm/vmx/vmx.c
> > @@ -1467,15 +1467,7 @@ void vmx_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags)
> > u32 vmx_get_interrupt_shadow(struct kvm_vcpu *vcpu)
> > {
> > - u32 interruptibility = vmcs_read32(GUEST_INTERRUPTIBILITY_INFO);
> > - int ret = 0;
> > -
> > - if (interruptibility & GUEST_INTR_STATE_STI)
> > - ret |= KVM_X86_SHADOW_INT_STI;
> > - if (interruptibility & GUEST_INTR_STATE_MOV_SS)
> > - ret |= KVM_X86_SHADOW_INT_MOV_SS;
> > -
> > - return ret;
> > + return __vmx_get_interrupt_shadow(vcpu);
> > }
> > void vmx_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask)
> >
>
> Is there any reason to add the __ version, since at this point kvm_x86_ops
> is already pointing to vt_get_interrupt_shadow?
Yeah, no idea what I was thinking, the whole thing can be moved as is, just need
to delete the prototype in vmx.h.
Powered by blists - more mailing lists