From: Paolo Bonzini <pbonzini@redhat.com>
To: Shuai Ruan <shuai.ruan@linux.intel.com>, kvm@vger.kernel.org
Cc: allen.m.kay@intel.com
Subject: Re: Questions about kvm msr read/write policy
Date: Tue, 8 Mar 2016 15:45:49 +0100 [thread overview]
Message-ID: <56DEE59D.7060908@redhat.com> (raw)
In-Reply-To: <20160308081916.GA20448@shuai.ruan@linux.intel.com>
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
parent reply other threads:[~2016-03-08 14:46 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20160308081916.GA20448@shuai.ruan@linux.intel.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56DEE59D.7060908@redhat.com \
--to=pbonzini@redhat.com \
--cc=allen.m.kay@intel.com \
--cc=kvm@vger.kernel.org \
--cc=shuai.ruan@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.