Dong, Eddie wrote:
I noticed the MACRO for SVM vmcb->control.event_inj and VMX VM_EXIT_INTR_INFO 
are almost same, I have a need to query the event injection situation in common 
code so plan to expose this register read/write to x86.c.  Should we define a new 
format for evtinj/VM_EXIT_INTR_INFO as common KVM format, or just move those 
original MACRO to kvm_host.h?


This is dangerous if additional bits or field values are defined by either architecture. Better to use accessors.

--
Do not meddle in the internals of kernels, for they are subtle and quick to 
panic.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to