acrn-hypervisor/hypervisor/include/arch/x86
Junjie Mao 004d2e2696 HV: treewide: give names to unnamed structs/unions
According to the syntax defined in C99, each struct/union field must have an
identifier. This patch adds names to the previously unnamed fields for C99
compatibility.

Here is a summary of the names (marked with a pair of *stars*) added.

struct trusty_mem:

    union {
        struct {
            struct key_info key_info;
            struct trusty_startup_param startup_param;
        } *data*;
        uint8_t page[CPU_PAGE_SIZE];
    } first_page;

struct ptdev_remapping_info:

    union {
        struct ptdev_msi_info msi;
        struct ptdev_intx_info intx;
    } *ptdev_intr_info*;

union code_segment_descriptor:

    uint64_t value;
    struct {
        union {
            ...
        } low32;
        union {
            ...
        } high32;
    } *fields*;

    similar changes are made to the following structures.
    * union data_segment_descriptor,
    * union system_segment_descriptor,
    * union tss_64_descriptor, and
    * union idt_64_descriptor

struct trace_entry:

    union {
        struct {
            uint32_t a, b, c, d;
        } *fields_32*;
        struct {
            uint8_t a1, a2, a3, a4;
            uint8_t b1, b2, b3, b4;
            uint8_t c1, c2, c3, c4;
            uint8_t d1, d2, d3, d4;
        } *fields_8*;
        struct {
            uint64_t e;
            uint64_t f;
        } *fields_64*;
        char str[16];
    } *payload*;

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
2018-05-29 14:12:15 +08:00
..
guest page walk during copy_from_vm/copy_to_vm 2018-05-24 13:42:19 +08:00
apicreg.h uefi: remove warkaround for AP wakeup 2018-05-17 10:23:27 +08:00
assign.h HV: treewide: give names to unnamed structs/unions 2018-05-29 14:12:15 +08:00
cpu.h HV: Fix the incorrect operand-constraints for inline assembly 2018-05-15 18:03:33 +08:00
cpufeatures.h hv: add hardware_detect_support to detect which hardware we support 2018-05-15 17:25:56 +08:00
cpuid.h HV: add cpu model name 2018-05-15 17:25:25 +08:00
gdt.h HV: treewide: give names to unnamed structs/unions 2018-05-29 14:12:15 +08:00
hv_arch.h hv: move structure(intr_ctx) to irq.h 2018-05-23 13:38:52 +08:00
idt.h HV: treewide: give names to unnamed structs/unions 2018-05-29 14:12:15 +08:00
io.h HV Cx: allow guest to access host idle port 2018-05-15 17:25:57 +08:00
ioapic.h ptdev: change remapping entry from virtual to physical based 2018-05-15 17:25:57 +08:00
irq.h hv:rename data structure intr_ctx 2018-05-23 13:38:52 +08:00
lapic.h refine: remove redundant data type definition 2018-05-15 17:25:54 +08:00
mmu.h page walk during copy_from_vm/copy_to_vm 2018-05-24 13:42:19 +08:00
msr.h hv: vmx_capability: add cpu_has_vmx_ept/vpid_cap API 2018-05-15 17:25:55 +08:00
multiboot.h UEFI: change the efi_ctx passing method 2018-05-15 17:19:39 +08:00
reboot.h hv: Add reboot shell command 2018-05-18 16:38:40 +08:00
softirq.h initial import 2018-05-11 14:44:28 +08:00
timer.h hv: timer: make the timer list be ordered 2018-05-15 18:03:33 +08:00
trusty.h mmu:create temporary page tables for guest at run time 2018-05-15 17:25:26 +08:00
vmexit.h vmexit: refine vmexit loop 2018-05-24 13:42:19 +08:00
vmx.h hv: define 4 vcpu modes 2018-05-24 10:16:48 +08:00
vtd.h ept: change eptp to PA 2018-05-15 17:25:25 +08:00
zeropage.h vm load: fix bug in loading kernel 2018-05-15 17:19:37 +08:00