mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-28 12:05:59 +00:00
HV:common:fix "integer type violations"
fix integer type violations,keep some violations which related to hypcall and msix_entry_index. V1->V2:1.modified API_MAJOR_VERSION from Makefile 2.sync acrn_common.h changed to device model Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -164,10 +164,10 @@ struct acrn_set_ioreq_buffer {
|
||||
} __aligned(8);
|
||||
|
||||
/** Interrupt type for acrn_irqline: inject interrupt to IOAPIC */
|
||||
#define ACRN_INTR_TYPE_ISA 0
|
||||
#define ACRN_INTR_TYPE_ISA 0U
|
||||
|
||||
/** Interrupt type for acrn_irqline: inject interrupt to both PIC and IOAPIC */
|
||||
#define ACRN_INTR_TYPE_IOAPIC 1
|
||||
#define ACRN_INTR_TYPE_IOAPIC 1U
|
||||
|
||||
/**
|
||||
* @brief Info to assert/deassert/pulse a virtual IRQ line for a VM
|
||||
@@ -266,7 +266,7 @@ struct acrn_vm_pci_msix_remap {
|
||||
* layout below 1M, DM add this address to E280 reserved range to make sure
|
||||
* there is no overlap for the address 0xef000 usage.
|
||||
*/
|
||||
#define GUEST_CFG_OFFSET 0xef000
|
||||
#define GUEST_CFG_OFFSET 0xef000UL
|
||||
|
||||
/**
|
||||
* @brief Info The power state data of a VCPU.
|
||||
|
@@ -194,9 +194,9 @@ struct vm_gpa2hpa {
|
||||
* hypercall
|
||||
*/
|
||||
struct hc_ptdev_irq {
|
||||
#define IRQ_INTX 0
|
||||
#define IRQ_MSI 1
|
||||
#define IRQ_MSIX 2
|
||||
#define IRQ_INTX 0U
|
||||
#define IRQ_MSI 1U
|
||||
#define IRQ_MSIX 2U
|
||||
/** irq mapping type: INTX or MSI */
|
||||
uint32_t type;
|
||||
|
||||
|
Reference in New Issue
Block a user