mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-31 08:31:09 +00:00
hv: struct seg_desc_vmcs name change
struct seg_desc_vmcs is actually for segment descriptor vmcs fields. Change its name to vmcs_seg_field Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -183,17 +183,17 @@ static uint64_t size2mask[9] = {
|
||||
#define VMX_INVALID_VMCS_FIELD 0xffffffffU
|
||||
|
||||
/*
|
||||
* This struct seg_desc_vmcs is defined separately to hold the vmcs field
|
||||
* This struct vmcs_seg_field is defined separately to hold the vmcs field
|
||||
* address of segment selector.
|
||||
*/
|
||||
struct seg_desc_vmcs {
|
||||
struct vmcs_seg_field {
|
||||
uint32_t base_field;
|
||||
uint32_t limit_field;
|
||||
uint32_t access_field;
|
||||
};
|
||||
|
||||
static void encode_vmcs_seg_desc(enum cpu_reg_name seg,
|
||||
struct seg_desc_vmcs *desc)
|
||||
struct vmcs_seg_field *desc)
|
||||
{
|
||||
switch (seg) {
|
||||
case CPU_REG_ES:
|
||||
@@ -377,7 +377,7 @@ static void vm_set_register(struct vcpu *vcpu, enum cpu_reg_name reg,
|
||||
*/
|
||||
static void vm_get_seg_desc(enum cpu_reg_name seg, struct seg_desc *desc)
|
||||
{
|
||||
struct seg_desc_vmcs tdesc;
|
||||
struct vmcs_seg_field tdesc;
|
||||
|
||||
/* tdesc->access != 0xffffffffU in this function */
|
||||
encode_vmcs_seg_desc(seg, &tdesc);
|
||||
|
Reference in New Issue
Block a user