hv: dm: Use new ioctl ACRN_IOCTL_SET_VCPU_REGS

struct acrn_set_vcpu_regs	->	struct acrn_vcpu_regs
struct acrn_vcpu_regs		->	struct acrn_regs
IC_SET_VCPU_REGS		->	ACRN_IOCTL_SET_VCPU_REGS

Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
This commit is contained in:
Shuo A Liu
2021-07-07 14:02:31 +08:00
committed by wenlingz
parent f476ca55ab
commit 107cae316a
12 changed files with 23 additions and 26 deletions

View File

@@ -310,7 +310,7 @@ acrn_sw_load_bzimage(struct vmctx *ctx)
{
int ret, setup_size;
memset(&ctx->bsp_regs, 0, sizeof(struct acrn_set_vcpu_regs));
memset(&ctx->bsp_regs, 0, sizeof(struct acrn_vcpu_regs));
ctx->bsp_regs.vcpu_id = 0;
if (with_bootargs) {

View File

@@ -272,7 +272,7 @@ acrn_sw_load_elf(struct vmctx *ctx)
/* set guest bsp state. Will call hypercall set bsp state
* after bsp is created.
*/
memset(&ctx->bsp_regs, 0, sizeof( struct acrn_set_vcpu_regs));
memset(&ctx->bsp_regs, 0, sizeof( struct acrn_vcpu_regs));
ctx->bsp_regs.vcpu_id = 0;
memcpy(ctx->baseaddr + GDT_LOAD_OFF(ctx), &acrn_init_gdt,

View File

@@ -299,7 +299,7 @@ acrn_sw_load_ovmf(struct vmctx *ctx)
/* set guest bsp state. Will call hypercall set bsp state
* after bsp is created.
*/
memset(&ctx->bsp_regs, 0, sizeof(struct acrn_set_vcpu_regs));
memset(&ctx->bsp_regs, 0, sizeof(struct acrn_vcpu_regs));
ctx->bsp_regs.vcpu_id = 0;
/* CR0_ET | CR0_NE */

View File

@@ -297,7 +297,7 @@ acrn_sw_load_vsbl(struct vmctx *ctx)
/* set guest bsp state. Will call hypercall set bsp state
* after bsp is created.
*/
memset(&ctx->bsp_regs, 0, sizeof( struct acrn_set_vcpu_regs));
memset(&ctx->bsp_regs, 0, sizeof( struct acrn_vcpu_regs));
ctx->bsp_regs.vcpu_id = 0;
/* CR0_ET | CR0_NE */

View File

@@ -642,9 +642,9 @@ vm_reset_ptdev_intx_info(struct vmctx *ctx, uint16_t virt_bdf, uint16_t phys_bdf
}
int
vm_set_vcpu_regs(struct vmctx *ctx, struct acrn_set_vcpu_regs *vcpu_regs)
vm_set_vcpu_regs(struct vmctx *ctx, struct acrn_vcpu_regs *vcpu_regs)
{
return ioctl(ctx->fd, IC_SET_VCPU_REGS, vcpu_regs);
return ioctl(ctx->fd, ACRN_IOCTL_SET_VCPU_REGS, vcpu_regs);
}
int