From: Jan Kiszka <jan.kiszka@siemens.com>
To: Joerg Roedel <jroedel@suse.de>
Cc: kvm <kvm@vger.kernel.org>
Subject: SVM: Can we read back all segment attributes?
Date: Wed, 02 Jul 2014 16:13:53 +0200 [thread overview]
Message-ID: <53B413A1.30309@siemens.com> (raw)
Hi Jörg,
a question about how to interpret the SVM spec popped up because of a
problems with running KVM on top of VMware: We currently read the G bit
of all segments except CS back from the VMCB (svm_get_segment). VMware
does not seem to support this while real hardware is practically fine.
So I received some KVM patch from them to apply the CS strategy (use the
limit to define G) for all segments.
Reading section 15.5.1, one could base this on the sentence ("Segment
State in the VMCB"): "However, only some of the attribute bits are
actually observed by hardware, depending on the segment register in
question: ..." Then follows a list that does not include G. That
definitely means hardware does not read the G bit - but does it always
update it when the guest loads a different segment?
And if G is not guaranteed to be updated, what about the other bits we
currently read back? Are there some that are affected by these
exceptions as well?
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
reply other threads:[~2014-07-02 14:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=53B413A1.30309@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=jroedel@suse.de \
--cc=kvm@vger.kernel.org \
/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.