mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
hv: rename vlapic_pir_desc to pi_desc
Rename struct vlapic_pir_desc to pi_desc Rename struct member and local variable pir_desc to pid pir=posted interrupt request, pi=posted interrupt pid=posted interrupt descriptor pir is part of pi descriptor, so it is better to use pi instead of pir struct pi_desc will be moved to vmx.h in subsequent commit. Tracked-On: #4506 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Reviewed-by: Eddie Dong <eddie.dong@Intel.com>
This commit is contained in:
@@ -43,7 +43,9 @@
|
||||
|
||||
#define VLAPIC_MAXLVT_INDEX APIC_LVT_CMCI
|
||||
|
||||
struct vlapic_pir_desc {
|
||||
/* Posted Interrupt Descriptor (PID) in VT-d spec */
|
||||
struct pi_desc {
|
||||
/* Posted Interrupt Requests, one bit per requested vector */
|
||||
uint64_t pir[4];
|
||||
uint64_t pending;
|
||||
uint64_t unused[3];
|
||||
@@ -58,16 +60,16 @@ struct vlapic_timer {
|
||||
|
||||
struct acrn_vlapic {
|
||||
/*
|
||||
* Please keep 'apic_page' and 'pir_desc' be the first two fields in
|
||||
* Please keep 'apic_page' and 'pid' be the first two fields in
|
||||
* current structure, as below alignment restrictions are mandatory
|
||||
* to support APICv features:
|
||||
* - 'apic_page' MUST be 4KB aligned.
|
||||
* - 'pir_desc' MUST be 64 bytes aligned.
|
||||
* - 'pid' MUST be 64 bytes aligned.
|
||||
* IRR, TMR and PIR could be accessed by other vCPUs when deliver
|
||||
* an interrupt to vLAPIC.
|
||||
*/
|
||||
struct lapic_regs apic_page;
|
||||
struct vlapic_pir_desc pir_desc;
|
||||
struct pi_desc pid;
|
||||
|
||||
struct acrn_vm *vm;
|
||||
struct acrn_vcpu *vcpu;
|
||||
|
Reference in New Issue
Block a user