From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: Re: Userspace MSR handling Date: Mon, 25 May 2009 13:03:48 +0200 Message-ID: <4A1A7B14.5000205@redhat.com> References: <9ae48b020905221311h1859d5a1v3653404721d5208b@mail.gmail.com> <790CB8FA-1660-4F6B-BEEC-AAB9724DDD64@suse.de> <4A193878.4030206@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander Graf , Ed Swierk , "kvm@vger.kernel.org" To: Avi Kivity Return-path: Received: from mx2.redhat.com ([66.187.237.31]:52061 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751313AbZEYLD5 (ORCPT ); Mon, 25 May 2009 07:03:57 -0400 In-Reply-To: <4A193878.4030206@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 05/24/09 14:07, Avi Kivity wrote: > I agree however that the Xen hypercall page protocol has no business in > kvm.ko. But can't we implement it in emu? Xenner conveniently places a > ring 0 stub in the guest, we could trap the MSR there and emulate it > entirely in the guest. No. The case where handling the msr writes is needed is the pv-on-hvm driver support. For pv kernels it could be handled by emu if it would be needed, but pv kernels don't need the msr stuff in the first place. There should be a longish mail about that in the list archive ... cheers, Gerd