From: Arun Sharma <arun.sharma@intel.com>
To: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: Device model architecture (Was Re: Re: Are linkerscripts needed?)
Date: Fri, 27 May 2005 11:06:41 -0700 [thread overview]
Message-ID: <429761B1.9060201@intel.com> (raw)
In-Reply-To: <A95E2296287EAD4EB592B5DEEFCE0E9D281F28@liverpoolst.ad.cl.cam.ac.uk>
Ian Pratt wrote:
>>I guess the main logic behind your argument is that there is
>>no need to fully virtualize the device models, so no need to
>>run them within a non-root VMCS.
>
>
> We can't run them in the same non-root VMCS as the guest since we need
> some virtual address space. [...]
You can, with a world switch using a different CR3.
>
>>The only comment I have is: for the case where the device
>>models require the services of a backend driver, you might be
>>paying more than what we currently pay (one domain switch)
>>i.e. vmx domain -> mini os -> backend. But it should be
>>faster for everything else.
>
>
> The vmx_domain to mini-OS switch happens as part of the vmexit.
It's actually the vmexit + cost of upcall to the mini-os + cost of
domain switch to the backend (say dom0).
Right now, it's vmexit + cost of domain switch to dom0 + cost of dom0
kernel to user mode device model.
So the difference is
cost of dom0 kernel to user - cost of frontend to backend switch
I suspect that the delta is small and not much to worry about.
> Devices such as the APIC/IOAPIC/PIT etc can all be emulated without
> calling out of the device model, and should work with just the same
> performance as having them in Xen as we do today.
True, it's definitely a win for devices that don't require communication
with the backend.
Also, some customers might want to use the split I/O model, where the
VMX domain directly wants to use a raw partition on real disk. I'd
rather have drivers in the OS hosting the device-models instead of going
through the backend.
-Arun
next prev parent reply other threads:[~2005-05-27 18:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-27 10:49 Device model architecture (Was Re: Re: Are linkerscripts needed?) Ian Pratt
2005-05-27 18:06 ` Arun Sharma [this message]
2005-05-30 16:55 ` Arun Sharma
-- strict thread matches above, loose matches on Subject: below --
2005-05-30 17:21 Ian Pratt
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=429761B1.9060201@intel.com \
--to=arun.sharma@intel.com \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--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.