lkml.org 
[lkml]   [2009]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Add MCE support to KVM
Avi Kivity wrote: 
>
> Then we would need to tell which read-only MSRs are setup writeable
> and which aren't...
>
> I'm okay with an ioctl to setup MCE, but just make sure userspace has
> all the information to know what the kernel can do rather than the
> try-and-see-if-it-works approach. We can publish this information via
> KVM_CAP things, or via another ioctl (see KVM_GET_SUPPORTED_CPUID2 for
> an example).

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.

KVM_SET_MSRs should be reserved for MSRs that are performance
sensitive. Not all of them will be.

Regards,

Anthony Liguori



\
 
 \ /
  Last update: 2009-04-19 00:19    [W:0.134 / U:0.516 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site