[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200113103117.GA44375@arm.com>
Date: Mon, 13 Jan 2020 10:31:18 +0000
From: Steven Price <steven.price@....com>
To: yezengruan <yezengruan@...wei.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"kvmarm@...ts.cs.columbia.edu" <kvmarm@...ts.cs.columbia.edu>,
"kvm@...r.kernel.org" <kvm@...r.kernel.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
"virtualization@...ts.linux-foundation.org"
<virtualization@...ts.linux-foundation.org>,
"maz@...nel.org" <maz@...nel.org>,
James Morse <James.Morse@....com>,
"linux@...linux.org.uk" <linux@...linux.org.uk>,
Suzuki Poulose <Suzuki.Poulose@....com>,
"julien.thierry.kdev@...il.com" <julien.thierry.kdev@...il.com>,
Catalin Marinas <Catalin.Marinas@....com>,
Mark Rutland <Mark.Rutland@....com>,
"will@...nel.org" <will@...nel.org>,
"daniel.lezcano@...aro.org" <daniel.lezcano@...aro.org>,
"Wanghaibin (D)" <wanghaibin.wang@...wei.com>
Subject: Re: [PATCH v2 3/6] KVM: arm64: Support pvlock preempted via shared
structure
On Sat, Jan 11, 2020 at 07:30:42AM +0000, yezengruan wrote:
> Hi Steve,
>
> On 2020/1/9 23:02, Steven Price wrote:
> > On 26/12/2019 13:58, Zengruan Ye wrote:
> >> Implement the service call for configuring a shared structure between a
> >> VCPU and the hypervisor in which the hypervisor can tell the VCPU is
> >> running or not.
> >>
> >> The preempted field is zero if 1) some old KVM deos not support this filed.
> >
> > NIT: s/deos/does/
>
> Thanks for posting this.
>
> >
> > However, I would hope that the service call will fail if it's an old KVM not simply return zero.
>
> Sorry, I'm not sure what you mean. The service call will fail if it's an old KVM, and the Guest will use __native_vcpu_is_preempted.
You previously said the "field is zero if [...] some old KVM does not
support this field". This seems a bit of an odd statement, because the
field just doesn't exist (it's an old KVM so won't have allocated it),
and if the guest attempts to find the field using the service call then
the call will fail.
So I'm not sure in what situation you are expecting the field to be zero
on an old KVM.
Steve
Powered by blists - more mailing lists