mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
HV:treewide:transfer the struct member types to non-basic types
The struct member types should be transfer to non-basic types, chaned it to length-prefix(uint32_t,int32_t ...) type. Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -271,7 +271,7 @@ struct tss_64 {
|
||||
* Definition of the GDT descriptor.
|
||||
*/
|
||||
struct host_gdt_descriptor {
|
||||
unsigned short len;
|
||||
uint16_t len;
|
||||
struct host_gdt *gdt;
|
||||
} __packed;
|
||||
|
||||
|
@@ -243,13 +243,13 @@ struct vcpu {
|
||||
volatile enum vcpu_state state; /* State of this VCPU */
|
||||
/* State of debug request for this VCPU */
|
||||
volatile enum vcpu_state dbg_req_state;
|
||||
unsigned long sync; /*hold the bit events*/
|
||||
uint64_t sync; /*hold the bit events*/
|
||||
struct vlapic *vlapic; /* per vCPU virtualized LAPIC */
|
||||
|
||||
struct list_head run_list; /* inserted to schedule runqueue */
|
||||
unsigned long pending_pre_work; /* any pre work pending? */
|
||||
uint64_t pending_pre_work; /* any pre work pending? */
|
||||
bool launched; /* Whether the vcpu is launched on target pcpu */
|
||||
unsigned int paused_cnt; /* how many times vcpu is paused */
|
||||
uint32_t paused_cnt; /* how many times vcpu is paused */
|
||||
int running; /* vcpu is picked up and run? */
|
||||
int ioreq_pending; /* ioreq is ongoing or not? */
|
||||
|
||||
|
@@ -67,7 +67,7 @@ struct host_idt {
|
||||
* Definition of the IDT descriptor.
|
||||
*/
|
||||
struct host_idt_descriptor {
|
||||
unsigned short len;
|
||||
uint16_t len;
|
||||
struct host_idt *idt;
|
||||
} __packed;
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
struct vm_io_range {
|
||||
uint16_t base; /* IO port base */
|
||||
uint16_t len; /* IO port range */
|
||||
int flags; /* IO port attributes */
|
||||
uint32_t flags; /* IO port attributes */
|
||||
};
|
||||
|
||||
/* Write 1 byte to specified I/O port */
|
||||
|
@@ -13,7 +13,7 @@
|
||||
struct sched_context {
|
||||
spinlock_t runqueue_lock;
|
||||
struct list_head runqueue;
|
||||
unsigned long flags;
|
||||
uint64_t flags;
|
||||
struct vcpu *curr_vcpu;
|
||||
spinlock_t scheduler_lock;
|
||||
};
|
||||
|
Reference in New Issue
Block a user