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/
Home Products Support Community News


Re: [Xen-devel] How expensive is a VM EXIT?

To: NAHieu <nahieu@xxxxxxxxx>
Subject: Re: [Xen-devel] How expensive is a VM EXIT?
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 04 Mar 2009 08:45:46 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 04 Mar 2009 00:46:18 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <5d7aca950903031615n380c6e30u2777e83a520cecc2@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmcXkSx132/LweuTM6fde+5jAjHDAAR1d1D
Thread-topic: [Xen-devel] How expensive is a VM EXIT?
User-agent: Microsoft-Entourage/
On 04/03/2009 00:15, "NAHieu" <nahieu@xxxxxxxxx> wrote:

> On Wed, Mar 4, 2009 at 1:34 AM, Keir Fraser <keir.fraser@xxxxxxxxxxxxx> wrote:
>> For just the VMEXIT itself, it's probably about 1000-1500 cycles on the
>> latest processors. I haven't measured it very recently though.
> Could you explain how do you measure the cycles for VMEXIT?

RDTSC in the guest immediately before triggering a VMEXIT and RDTSC in the
hypervisor on entry.

 -- Keir

Xen-devel mailing list