From: Keir Fraser Subject: Re: Windows SMP Date: Mon, 29 Dec 2008 09:58:05 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: James Harper , Venefax , Dirk Utterback Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 29/12/2008 09:40, "James Harper" wrote: > Assuming the hypervisor route, if I understand correctly it could go > like this: Either of your described approaches could work. This doesn't involve qemu at all, since APIC emulation is done within Xen. So it'll be a new hvm_op hypercall either way. Getting Xen to do the patching isn't a bad idea. Might also be worth looking at how KVM does it to get some further ideas. I don't think your patched routine has to be any more complex than filtering out TPR writes which don't change the TPR value. Again you could check KVM for this. And of course the TPR write in your patch routine should be skipped by the trap-and-patch mechanism. :-) >> Both. As well as the VMEXIT you have a run through the instruction >> emulator >> and into the apic device model. It sucks pretty bad if you do it > often. > > I see. It's the sum of a whole load of tiny overheads that adds up... Two fairly big overheads. -- Keir