All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Arai <arai@vmware.com>
To: xen-devel@lists.xensource.com
Subject: RE: [RFC] VMI for Xen?
Date: Thu, 16 Mar 2006 16:09:28 -0800	[thread overview]
Message-ID: <4419FE38.4060605@vmware.com> (raw)
In-Reply-To: <4419F36A.6070906@vmware.com>

Ian Pratt wrote:

> The current VMI patchset couldn't support Xen's direct-mode (non shadow)
> MMU virtualization, and hasn't really been thought through properly for
> SMP. I'm sure we'll get something worked out that keeps everyone happy.

I'm not sure what you mean that VMI "hasn't really been thought through
properly for SMP."  I'm writing this email from an SMP VMI guest.

Using page table shadows makes an SMP implementation really easy.  Page
table writes can go directly to the virtual page tables.  The guest needs
to inform the hypervisor which page table entries have been modified, but
actually processing these entries and updating the hardware page tables
can be deferred until page invalidate, cr3 reassignment, or TLB shootdown
time.  All of the details here are hidden behind the VMI "set page table
entry" call.  The guest just uses this call and everything happens on its
behalf.

We give each VCPU a private queue for notifying the hypervisor of page
table updates and other types of CPU state changes that can be deferred.
Because we use per-VCPU page table shadows, we're able to put a private
queue in each VCPU at the same linear address space.  Updates to the queue
thus are just a couple of memory writes, and allows very efficient batching
of page table writes, even for SMP.  The hypervisor and the ROM contain
all the knowledge of this interface (rather than the guest), so it would
be relatively easy to change to support shared shadow page tables, or a
different mechanism for direct-mode page tables.

We're obviously lacking some interfaces needed for direct-mode paging, but
aside from those, are there specific deficiencies for SMP?

(Apologies if quoting/replies aren't set up properly;  I wasn't previously
subscribed to xen-devel, and had this forwarded by a colleague.)

Dan.

       reply	other threads:[~2006-03-17  0:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4419F36A.6070906@vmware.com>
2006-03-17  0:09 ` Daniel Arai [this message]
2006-03-16 23:11 [RFC] VMI for Xen? Ian Pratt
2006-03-16 23:24 ` Anthony Liguori
2006-03-16 23:33 ` Anthony Liguori
2006-03-17 10:42   ` Keir Fraser
2006-03-17 14:39     ` Anthony Liguori
2006-03-17 18:19     ` Zachary Amsden
2006-03-16 23:55 ` Chris Wright
2006-03-17  0:10   ` Anthony Liguori
2006-03-17  8:53     ` Keir Fraser
2006-03-17  8:59       ` Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2006-03-14 22:01 Anthony Liguori
2006-03-16 20:08 ` Anthony Liguori
2006-03-19 15:51   ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4419FE38.4060605@vmware.com \
    --to=arai@vmware.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.