@samitouri / QOSamiQemu / commits / f2230f044d

accel/mshv: remove redundant msi controller

The remaining MsiControl infrastructure can be removed now Signed-off-by: Magnus Kulke <magnuskulke@linux.microsoft.com> Link: https://lore.kernel.org/r/20260417105618.3621-14-magnuskulke@linux.microsoft.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Magnus Kulke committed Apr 17, 2026 at 12:55 UTC f2230f044d70c4c22176298437455f2ae6a2da60
3 files changed -16
accel/mshv/irq.c
-11
@@ -25,17 +25,6 @@
25 #define MSHV_IRQFD_RESAMPLE_FLAG (1 << MSHV_IRQFD_BIT_RESAMPLE)
26 #define MSHV_IRQFD_BIT_DEASSIGN_FLAG (1 << MSHV_IRQFD_BIT_DEASSIGN)
27
28 -static MshvMsiControl *msi_control;
29 -static QemuMutex msi_control_mutex;
30 -
31 -void mshv_init_msicontrol(void)
32 -{
33 - qemu_mutex_init(&msi_control_mutex);
34 - msi_control = g_new0(MshvMsiControl, 1);
35 - msi_control->gsi_routes = g_hash_table_new(g_direct_hash, g_direct_equal);
36 - msi_control->updated = false;
37 -}
38 -
28 /* Pass an eventfd which is to be used for injecting interrupts from userland */
29 static int irqfd(int vm_fd, int fd, int resample_fd, uint32_t gsi,
30 uint32_t flags)
accel/mshv/mshv-all.c
-2
@@ -505,8 +505,6 @@ static int mshv_init(AccelState *as, MachineState *ms)
505
506 mshv_init_mmio_emu();
507
508 - mshv_init_msicontrol();
509 -
508 ret = create_vm(mshv_fd, &vm_fd);
509 if (ret < 0) {
510 close(mshv_fd);
include/system/mshv_int.h
-3
@@ -120,7 +120,4 @@ typedef struct MshvMsrEntries {
120 int mshv_configure_msr(const CPUState *cpu, const MshvMsrEntry *msrs,
121 size_t n_msrs);
122
123 -/* interrupt */
124 -void mshv_init_msicontrol(void);
125 -
123 #endif