mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +00:00
HV: vioapic: cleaning up integral-type-related violations
This patch cleans up the integral-type-related violations after the access pattern to RTEs is unified. Major changes include: 1. vioapic_mmio_read(), vioapic_mmio_write() and vioapic_mmio_rw() assumes the size of the register to be accessed is always 4, which is checked in vioapic_mmio_access_handler(). Thus they no longer takes the unused ''size'' parameter. 2. Typical integral-type-related violation fixes including 'U' suffixes, type of local variables, conversion specification in format strings, etc. v1 -> v2: * Drop duplicated definitions to IOAPIC register offsets. * Drop the ''size'' parameter of vioapic_mmio_[read|write] and vioapic_mmio_rw since vioapic_mmio_access_handler() ensures that size is always 4. Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -449,6 +449,7 @@ union ioapic_rte {
|
||||
#define DEFAULT_IO_APIC_BASE 0xfec00000UL
|
||||
|
||||
/* window register offset */
|
||||
#define IOAPIC_REGSEL 0x00U
|
||||
#define IOAPIC_WINDOW 0x10U
|
||||
#define IOAPIC_EOIR 0x40U
|
||||
|
||||
|
@@ -46,10 +46,8 @@ int vioapic_deassert_irq(struct vm *vm, uint32_t irq);
|
||||
int vioapic_pulse_irq(struct vm *vm, uint32_t irq);
|
||||
void vioapic_update_tmr(struct vcpu *vcpu);
|
||||
|
||||
int vioapic_mmio_write(void *vm, uint64_t gpa,
|
||||
uint64_t wval, int size);
|
||||
int vioapic_mmio_read(void *vm, uint64_t gpa,
|
||||
uint64_t *rval, int size);
|
||||
void vioapic_mmio_write(struct vm *vm, uint64_t gpa, uint32_t wval);
|
||||
void vioapic_mmio_read(struct vm *vm, uint64_t gpa, uint32_t *rval);
|
||||
|
||||
uint8_t vioapic_pincount(struct vm *vm);
|
||||
void vioapic_process_eoi(struct vm *vm, uint32_t vector);
|
||||
|
Reference in New Issue
Block a user