Re: [kvm-devel] [PATCH 10/13] KVM: Wire up hypercall handlers to a central arch-independent location

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Avi Kivity
Date: Thursday, February 22, 2007 - 7:20 am

Arjan van de Ven wrote:

That's what Xen does (I'm not sure about the timer, but they do avoid 
unnecessary interrupts).  As you can have memory shared between the 
guest and host, it's quite simple:

0. host puts data in ring
1. host sets interrupt timer
2. guest wakes up for unrelated reasons
3. guest sees data in ring, consumes it, and bumps the consumer pointer
4. timer fires, host sees consumer == producer, no need to issue interrupt

They have that code abstracted out and reusable by multiple drivers.

-- 
error compiling committee.c: too many arguments to function

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/13] kvm updates for 2.6.21, Avi Kivity, (Mon Feb 19, 3:20 am)
[PATCH 3/13] KVM: Cosmetics, Avi Kivity, (Mon Feb 19, 3:23 am)
[PATCH 7/13] KVM: add MSR based hypercall API, Avi Kivity, (Mon Feb 19, 3:27 am)
[PATCH 8/13] KVM: Add host hypercall support for vmx, Avi Kivity, (Mon Feb 19, 3:28 am)
[PATCH 9/13] KVM: Add hypercall host support for svm, Avi Kivity, (Mon Feb 19, 3:29 am)
[PATCH 11/13] KVM: svm: init cr0 with the wp bit set, Avi Kivity, (Mon Feb 19, 3:31 am)
[PATCH 13/13] KVM: More 0 -> NULL conversions, Avi Kivity, (Mon Feb 19, 3:33 am)
Re: [kvm-devel] [PATCH 10/13] KVM: Wire up hypercall handl ..., Avi Kivity, (Thu Feb 22, 7:20 am)