* SVM: Can we read back all segment attributes?
@ 2014-07-02 14:13 Jan Kiszka
0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2014-07-02 14:13 UTC (permalink / raw)
To: Joerg Roedel; +Cc: kvm
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-02 14:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-02 14:13 SVM: Can we read back all segment attributes? Jan Kiszka
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.