mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
hv: dynamically configure CPU affinity through hypercall
- add a new member cpu_affinity to struct acrn_create_vm, so that acrn-dm is able to assign CPU affinity through HC_CREATE_VM hypercall. - if vm_create.cpu_affinity is zero, hypervisor launches the VM with the statically configured CPU affinity. Tracked-On: #4616 Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -360,8 +360,15 @@ struct acrn_create_vm {
|
||||
|
||||
uint64_t req_buf;
|
||||
|
||||
/**
|
||||
* The least significant set bit is the PCPU # the VCPU 0 maps to;
|
||||
* second set least significant bit is the PCPU # the VCPU 1 maps to;
|
||||
* and so on...
|
||||
*/
|
||||
uint64_t cpu_affinity;
|
||||
|
||||
/** Reserved for future use*/
|
||||
uint8_t reserved2[16];
|
||||
uint8_t reserved2[8];
|
||||
} __aligned(8);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user