* Re: Questions about kvm msr read/write policy
[not found] <20160308081916.GA20448@shuai.ruan@linux.intel.com>
@ 2016-03-08 14:45 ` Paolo Bonzini
0 siblings, 0 replies; only message in thread
From: Paolo Bonzini @ 2016-03-08 14:45 UTC (permalink / raw)
To: Shuai Ruan, kvm; +Cc: allen.m.kay
On 08/03/2016 09:19, Shuai Ruan wrote:
>
> Using read msr as an example, if the msr is not handled in kvm(not
> recognised by kvm) and ignore_msrs clear, kvm will inject gp into
> guest os(if I understand this correctly).
>
> My question is what problem will cause(or in which situation will cause
> problem) if read msr (unhandled msr) just return 0 instead of injdecting
> gp fault into guest os?
> The same question with write msr, if just ignore this write , what will
> happen?
It depends on the MSR and on the guest OS. Usually 0 is treated as an
error or as "feature not present" so it just works.
Paolo
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-03-08 14:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20160308081916.GA20448@shuai.ruan@linux.intel.com>
2016-03-08 14:45 ` Questions about kvm msr read/write policy Paolo Bonzini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.