[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 8 Aug 2017 09:43:32 +0200
From: Cornelia Huck <cohuck@...hat.com>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: "Longpeng(Mike)" <longpeng2@...wei.com>, rkrcmar@...hat.com,
agraf@...e.com, borntraeger@...ibm.com,
christoffer.dall@...aro.org, marc.zyngier@....com,
james.hogan@...tec.com, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, weidong.huang@...wei.com,
arei.gonglei@...wei.com, wangxinxin.wang@...wei.com,
longpeng.mike@...il.com, david@...hat.com
Subject: Re: [PATCH v2 1/4] KVM: add spinlock optimization framework
On Tue, 8 Aug 2017 09:34:14 +0200
Paolo Bonzini <pbonzini@...hat.com> wrote:
> On 08/08/2017 06:05, Longpeng(Mike) wrote:
> > return 1;
> > diff --git a/arch/s390/kvm/diag.c b/arch/s390/kvm/diag.c
> > index ce865bd..4ea8c38 100644
> > --- a/arch/s390/kvm/diag.c
> > +++ b/arch/s390/kvm/diag.c
> > @@ -150,7 +150,7 @@ static int __diag_time_slice_end(struct kvm_vcpu *vcpu)
> > {
> > VCPU_EVENT(vcpu, 5, "%s", "diag time slice end");
> > vcpu->stat.diagnose_44++;
> > - kvm_vcpu_on_spin(vcpu);
> > + kvm_vcpu_on_spin(vcpu, kvm_arch_vcpu_in_kernel(vcpu));
> > return 0;
> > }
> >
>
> IIUC, diag is a privileged instruction so this an also be "true".
>
> Paolo
Yes, indeed.
Powered by blists - more mailing lists