Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1586433

Re: [RFC 54/55] KVM: arm/arm64: Adjust virtual offset considering nesting

From Christoffer Dall <cdall@linaro.org>
Newsgroups linux.kernel
Subject Re: [RFC 54/55] KVM: arm/arm64: Adjust virtual offset considering nesting
Date 2017-02-22 20:30 +0100
Message-ID <tdKLU-6vw-11@gated-at.bofh.it> (permalink)
References <sXBCV-wl-3@gated-at.bofh.it> <sXBCV-wl-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Jintack,

On Mon, Jan 09, 2017 at 01:24:50AM -0500, Jintack Lim wrote:
> The guest hypervisor sets cntvoff_el2 for its VM (i.e. nested VM).  Note
> that physical/virtual counter value in the guest hypervisor's point of
> view is already offsetted by the virtual offset set by the host
> hypervisor.  Therefore, the correct offset we need to write to the
> cntvoff_el2 is the sum of offset the host hypervisor initially has for
> the VM and virtual offset the guest hypervisor sets for the nested VM.

This appears to be the only timer patch in the series.  Should we not
also expose the EL2 timer to the VM and emulate that in software?

Thanks,
-Christoffer

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [RFC 54/55] KVM: arm/arm64: Adjust virtual offset considering  nesting Christoffer Dall <cdall@linaro.org> - 2017-02-22 20:30 +0100

csiph-web