WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] Question about reserving one CPU for the Xen hypervisor

To: "Liang Yang" <multisyncfe991@xxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-devel] Question about reserving one CPU for the Xen hypervisor in case of vm exit.
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Tue, 20 Mar 2007 11:13:12 +0100
Delivery-date: Tue, 20 Mar 2007 03:12:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <BAY125-DAV1395F460A7E7105E57C0B793760@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdqcYWFoA7tb3s4SiWLdQZNDOYIRAAZlcXg
Thread-topic: [Xen-devel] Question about reserving one CPU for the Xen hypervisor in case of vm exit.
 

> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Liang Yang
> Sent: 19 March 2007 21:56
> To: xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-devel] Question about reserving one CPU for the 
> Xen hypervisor in case of vm exit.
> 
> Hi,
> 
> My platform has two dual-core processors with VT-x enabled. 
> Suppose I use 
> "xm vcpu-pin" command to set up a fixed mapping between each physical 
> processor/core to virtual cpu (to avoid possible migration).
> 
> I have three domains, one is dom0, the second is domUP and 
> the third is 
> domUF (HVM domain). I give each domain one CPU and reserve one for 
> hypervisor. What I want to do is to always keep one CPU idle 
> (reserving it 
> for VMM), Xen hyperviso can thus always use this idle CPU 
> whenever a "vm 
> exit" happens and the guest HVM domain still has its own CPU 
> to do some 
> overlapping processing (to improve performance).

That will leave you with one CPU sitting there doing absolutely nothing,
as the VMEXIT handling is all done on the CPU that causes the VMEXIT in
the first place. 

The same applies for hypercalls from the PV side. They all happen on the
same CPU that the guest is running on. 

It's a good idea to allow Dom0 to have it's own CPU, but beyond that,
you're better off sharing the three CPU's between your two guests in one
way or another - obviously, you can't give one and a half CPU to a
guest, so you probably will have to give both guests two CPU's to make
efficient use of the system. Or give one CPU to one guest and two to the
other guest. 

--
Mats
> 
> Is this feasible?
> 
> Thanks,
> 
> Liang
> 
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
> 
> 
> 



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>