public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Nested virtualization and software page walks in the L1 hypervsior
@ 2020-02-29 22:30 Jim Mattson
  2020-03-04  0:22 ` Peter Feiner
  0 siblings, 1 reply; 5+ messages in thread
From: Jim Mattson @ 2020-02-29 22:30 UTC (permalink / raw)
  To: kvm list; +Cc: Peter Feiner

Peter Feiner asked me an intriguing question the other day. If you
have a hypervisor that walks  its guest's x86 page tables in software
during emulation, how can you make that software page walk behave
exactly like a hardware page walk? In particular, when the hypervisor
is running as an L1 guest, how is it possible to write the software
page walk so that accesses to L2's x86 page tables are treated as
reads if L0 isn't using EPT A/D bits, but they're treated as writes if
L0 is using EPT A/D bits? (Paravirtualization is not allowed.)

It seems to me that this behavior isn't virtualizable. Am I wrong?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-04 17:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-29 22:30 Nested virtualization and software page walks in the L1 hypervsior Jim Mattson
2020-03-04  0:22 ` Peter Feiner
2020-03-04 16:19   ` Sean Christopherson
2020-03-04 17:13     ` Jim Mattson
2020-03-04 17:47       ` Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox