mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-09 12:49:24 +00:00
dm: add API to set vcpu regs of guest
Add ioctl parameter and API to set vcpu regs. The guest software loader will call this API to set guest vcpu registers. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -269,6 +269,8 @@ add_cpu(struct vmctx *ctx, int guest_ncpus)
|
||||
mt_vmm_info[i].mt_vcpu = i;
|
||||
}
|
||||
|
||||
vm_set_vcpu_regs(ctx, &ctx->bsp_regs);
|
||||
|
||||
error = pthread_create(&mt_vmm_info[0].mt_thr, NULL,
|
||||
start_thread, &mt_vmm_info[0]);
|
||||
|
||||
|
Reference in New Issue
Block a user