Great. Hopefully you can commit some time to it or you'll spend a lot
of cycles just catching up.
Joerg just merged nested npt; as far as I can tell it is 100% in line
with nested ept, but please take a look as well.
IIRC we don't support msr bitmaps now, so no need to check anything.
In general, avoid vmcs reads as much as possible. Just think of your
code running in a guest!
If it changes in the future, it can only be under the influence of some
control or at least guest-discoverable capability. Since we don't
expose such control or capability, there's no need to copy it.
I don't think so. We write this field as part of guest entry (that is,
after the decision re which vmcs to use, yes?), so guest entry will
always follow writing this field. Since guest entry clears the field,
reading it after an exit will necessarily return 0.
What can happen is that the contents of the field is transferred to the
IDT_VECTORING_INFO field or VM_EXIT_INTR_INFO field.
(question: on a failed vmentry, is this field cleared?)
That's really a temporary variable, I don't think you need to touch it.
Ok. That answers my concern.
No, I wasn't worried about that, simply misunderstood the code.
We give the guest partial control over cr4:
#define KVM_CR4_GUEST_OWNED_BITS \
(X86_CR4_PVI | X86_CR4_DE | X86_CR4_PCE |
X86_CR4_OSFXSR \
| X86_CR4_OSXMMEXCPT)
Plus PGE if EPT is enabled.
I didn't mean register independent helper; one function for cr0 and one
function for cr4 so the reader can just see the name and pretend to
understand what it does, instead of seeing a bunch of incomprehensible
bitwise operations.
(well, reading what I wrote, maybe I did mean a cr independent helper,
but don't do it if it results in more complication)
--
error compiling committee.c: too many arguments to function
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html