mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
hv: Change the struct cpu_gp_regs name to acrn_gp_regs
We will define the hypercall to set acrn vcpu registers and move this struct to acrn_commmon.h for reference from hypercall parameter definition. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
@@ -167,7 +167,7 @@
|
||||
*/
|
||||
enum cpu_reg_name {
|
||||
/* General purpose register layout should align with
|
||||
* struct cpu_gp_regs
|
||||
* struct acrn_gp_regs
|
||||
*/
|
||||
CPU_REG_RAX,
|
||||
CPU_REG_RCX,
|
||||
|
@@ -10,7 +10,7 @@
|
||||
/* General-purpose register layout aligned with the general-purpose register idx
|
||||
* when vmexit, such as vmexit due to CR access, refer to SMD Vol.3C 27-6.
|
||||
*/
|
||||
struct cpu_gp_regs {
|
||||
struct acrn_gp_regs {
|
||||
uint64_t rax;
|
||||
uint64_t rcx;
|
||||
uint64_t rdx;
|
||||
|
@@ -77,7 +77,7 @@ struct run_context {
|
||||
* in vmx_asm.S match
|
||||
*/
|
||||
union {
|
||||
struct cpu_gp_regs regs;
|
||||
struct acrn_gp_regs regs;
|
||||
uint64_t longs[NUM_GPRS];
|
||||
} guest_cpu_regs;
|
||||
|
||||
|
@@ -69,7 +69,7 @@ struct boot_ctx {
|
||||
uint32_t cs_ar;
|
||||
uint64_t ia32_efer;
|
||||
#ifdef CONFIG_EFI_STUB
|
||||
struct cpu_gp_regs gprs;
|
||||
struct acrn_gp_regs gprs;
|
||||
uint64_t rip;
|
||||
uint64_t rflags;
|
||||
void *rsdp;
|
||||
|
@@ -44,7 +44,7 @@
|
||||
* Definition of the stack frame layout
|
||||
*/
|
||||
struct intr_excp_ctx {
|
||||
struct cpu_gp_regs gp_regs;
|
||||
struct acrn_gp_regs gp_regs;
|
||||
uint64_t vector;
|
||||
uint64_t error_code;
|
||||
uint64_t rip;
|
||||
|
Reference in New Issue
Block a user