Hi Avi, Hi Marcelo,
this patchset wraps the access to the intercept vectors in the VMCB into
specific functions. There are two reasons for this:
1) In the nested-svm code the effective intercept masks are
calculated from the host and the guest intercept masks.
Whenever KVM changes the host intercept mask while the VCPU
is in guest-mode the effective intercept masks need to be
re-calculated. This is nicely wrapped into these functions
now and makes the code more robust.
2) These changes make the implementation of the upcoming
vmcb-clean-bits feature easier and also more robust (which
was the main reason for writing this patchset).
These patches were developed on-top of the patch-set I sent yesterday. I
tested these patches with various guests (Windows-64, Linux 32,32e and
64 as well as with nested-svm).