[PATCH] Fix assertion failure in lsi53c810 emulator

2021-06-11 Thread Liu Cyrus
From: cyruscyliu An assertion failure can be triggered in the lsi53c810 emulator by a guest when ((s->sstat1 & 0x7) == PHASE_DO) || (s->sstat1 & 0x7) == PHASE_DI)) && (!s->current) holds. Check s->sstat1 and s->current in lsi_reg_writeb before lsi_execute_script() to discard this MMIO write. Fix

Subject: [PATCH] hw/vmxnet3: fix vmxnet3 g_assert_not_reached bug

2021-06-11 Thread Liu Cyrus
From: cyruscyliu A g_assert_not_reached of vmxnet3 can be triggered by a guest with the root privilege. Remove the VMXNET3_REG_ICR branch thus get rid of this crash. Fixes: 786fd2b0f87b ("VMXNET3 device implementation") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/309 Buglink: https:/