lkml.org 
[lkml]   [2009]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateMon, 20 Apr 2009 09:52:49 +0200
FromGerd Hoffmann <>
SubjectRe: [PATCH] Add MCE support to KVM
On 04/19/09 10:33, Avi Kivity wrote:
> Anthony Liguori wrote:
>> Why not introduce a new exit type for MSR reads/writes that aren't
>> handled by the kernel? You just need a bit on the return that
>> indicates whether to GPF because of an invalid MSR access.

Yes, please.

> Right now everything in the vcpu is emulated in the kernel. Everything
> else is emulated either in the kernel (irqchip) or in userspace. This
> makes things easier to understand, and is more future friendly if more
> cpu features become virtualized by hardware.
>
> While these are not compelling reasons, they at least lean the balance
> in favour of a kernel implementation.

The xen pv-on-hvm drivers use an msr to indicate "please place the
hypercall page here". Handling that in kernel isn't an option IMHO.

cheers,
Gerd


\
 
 \ /
  Last update: 2009-04-20 09:57    [from the cache]
©2003-2010