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:
Yin Fengwei
2018-09-28 10:44:33 +08:00
committed by lijinxia
parent b207f1b942
commit 843f7721f0
7 changed files with 22 additions and 22 deletions

View File

@@ -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,

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;