Misc HW patches for 2026-11-24
The following changes since commit 6bf90d4fc5027567cb704d7888f5ec792b4ed75a:
Merge tag 'pull-target-arm-20261124' of https://gitlab.com/pm215/qemu into staging (2026-11-24 07:09:41 -0800)
are available in the Git repository at:
https://github.com/philmd/qemu.git tags/hw-misc-20261124
for you to fetch changes up to c3800302668ff745e10b810f12723eac7068abda:
hw/ppc/amigaone: Invalidate TBs on NVRAM write (2026-11-25 00:02:01 +0100)
----------------------------------------------------------------
Misc fixes for 11.2
- SD (card, controller)
- VMWare VGA display
- Parallel NOR Flashes
- I8257 DMA controller
- IDE ATAPI layer
- Amiga One
----------------------------------------------------------------
Denis V. Lunev (1):
hw/ide/atapi: fix abort on CD-ROM reads past LBA 2^31
Harshit Mukhedkar (1):
hw/sd/sdcard: Validate migrated blk_len in post_load
Peter Maydell (4):
hw/display/vmware_vga: Zero-initialize scratch space hw/display/vmware_vga: Check for bogus FIFO_STOP and FIFO_NEXT values hw/display/vmware_vga: Reject attempts to set resolution outside VRAM
size
hw/display/vmware-vga: Check incoming migration width and height
Philippe Mathieu-Daudé (11):
hw/sd/sdcard: Do not abort when writing DAT lines on invalid cmd state hw/sd/sdcard: Fill SPI R1 response for rejected commands hw/sd/sdcard: Reject zero block length (CMD16) hw/sd/sdhci: Report Auto CMD12 response timeout in error status hw/dma/i8257: Read the mask from the RWAMB port hw/dma/i8257: Honor the command register group-disable bit hw/block/pflash_cfi01: Register VM change handler once hw/block/pflash_cfi01: Allow zero-count buffer write hw/block/pflash_cfi01: Reject out-of-range blk_offset on load hw/block/pflash_cfi02: Return to read-array mode on reset hw/ppc/amigaone: Invalidate TBs on NVRAM write
hw/sd/sdhci-internal.h | 1 + include/hw/ide/ide-dev.h | 2 +- hw/block/pflash_cfi01.c | 12 ++++++++++-- hw/block/pflash_cfi02.c | 2 +- hw/display/vmware_vga.c | 23 +++++++++++++++++++---- hw/dma/i8257.c | 9 ++++++++- hw/ide/atapi.c | 22 +++++++++++----------- hw/ide/macio.c | 2 +- hw/ppc/amigaone.c | 1 + hw/sd/sd.c | 23 +++++++++++++++++++++-- hw/sd/sdhci.c | 17 ++++++++++++++--- tests/qtest/ahci-test.c | 36 ++++++++++++++++++++++++++++++++++++ hw/ide/trace-events | 8 ++++---- 13 files changed, 128 insertions(+), 30 deletions(-)
Signature · 1 line
2.55.0
[PULL 01/17] hw/sd/sdcard: Do not abort when writing DAT lines on invalid cmd state
Since commit e2dec2eab04d, an illegal command resets SDState::current_cmd to 0 but leaves the card in the receiving-data state. Data written afterwards reaches the g_assert_not_reached() in sd_write_data():
CMD24 (WRITE_SINGLE_BLOCK) -> receiving-data state CMD2 (illegal in SPI mode) -> current_cmd = 0 data token + data -> sd_write_data(): abort
ERROR:../hw/sd/sd.c:<line>:sd_write_data: code should not be reached
Commit bd6207903eb8 already fixed the read side. Fix the write side the same way: log the guest error and ignore the data.
Message-ID: <[email protected]>
--- hw/sd/sd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
hw/sd/sd.c +3 -1
@@ -2806,7 +2806,9 @@ static size_t sd_write_data(SDState *sd, const void *buf, size_t length)break ;default : -g_assert_not_reached (); +qemu_log_mask (LOG_GUEST_ERROR ,"%s: DAT write illegal for command %s\n" , + __func__, sd->last_cmd_name); +break ; }return length;
Signature · 1 line
2.55.0
[PULL 03/17] hw/sd/sdcard: Fill SPI R1 response for rejected commands
In reply to Philippe Mathieu-DaudéIn SPI mode the card always responds (Physical Layer spec v1.10, 7.2.8 "Error Conditions"), so sd_response_size() returns 1 for sd_r0 and sd_illegal. However sd_do_command() does not fill the response buffer for these response types, so the ssi-sd bridge returns uninitialized bytes instead of an R1 with the "illegal command" bit set. Before commit 1585ab9f1baf, ssi-sd itself replied 0x04 (illegal command) in this case.
Build the R1 response with the "illegal command" bit set.
Message-ID: <[email protected]>
--- hw/sd/sd.c | 4 ++++ 1 file changed, 4 insertions(+)
hw/sd/sd.c +4 -0
@@ -2610,6 +2610,10 @@ send_response: sd->data_offset =0 ;/* fall-through */ case sd_illegal: +if (sd_is_spi (sd)) { +sd_response_r1_make (sd, response); + response[0 ] |=1 <<2 ;/* ILLEGAL_COMMAND */ + }break ;default :g_assert_not_reached ();
Signature · 1 line
2.55.0
[PULL 05/17] hw/sd/sdhci: Report Auto CMD12 response timeout in error status
In reply to Philippe Mathieu-DaudéAuto CMD12 copied an uninitialised stack buffer into the upper Response register when the card did not respond.
Store the response only when one is returned. On timeout, set the Auto CMD12 Timeout Error status and, if enabled, the Auto CMD12 Error interrupt (SD Host Controller v1.00, sections 1.11, 2.2.23).
Message-ID: <[email protected]>
--- hw/sd/sdhci-internal.h | 1 + hw/sd/sdhci.c | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-)
hw/sd/sdhci-internal.h +1 -0
@@ -174,6 +174,7 @@ FIELD(SDHC_TIMEOUTCON, COUNTER, 0, 4);#define SDHC_EISEN_CMDTIMEOUT 0x0001#define SDHC_EISEN_BLKGAP 0x0004#define SDHC_EISEN_CMDIDX 0x0008 +#define SDHC_EISEN_CMD12ERR 0x0100#define SDHC_EISEN_ADMAERR 0x0200/* R/W Normal Interrupt Signal Enable Register 0x0 */
hw/sd/sdhci.c +14 -3
@@ -415,13 +415,24 @@ static void sdhci_end_transfer(SDHCIState *s)if ((s->trnmod &SDHC_TRNS_ACMD12 ) !=0 ) {SDRequest request;uint8_t response[16 ]; +size_t rlen; request.cmd =0x0C ; request.arg =0 ;trace_sdhci_end_transfer (request.cmd, request.arg); -sdbus_do_command (&s->sdbus, &request, response,sizeof (response)); -/* Auto CMD12 response goes to the upper Response register */ - s->rspreg[3 ] =ldl_be_p (response); + rlen =sdbus_do_command (&s->sdbus, &request, response, +sizeof (response)); +if (rlen ==4 ) { +/* Auto CMD12 response goes to the upper Response register */ + s->rspreg[3 ] =ldl_be_p (response); + }else { +trace_sdhci_error ("timeout waiting for Auto CMD12 response" ); + s->acmd12errsts |=R_SDHC_ACMD12ERRSTS_TIMEOUT_ERR_MASK ; +if (s->errintstsen &SDHC_EISEN_CMD12ERR ) { + s->errintsts |=SDHC_EIS_CMD12ERR ; + s->norintsts |=SDHC_NIS_ERR ; + } + } } s->prnsts &= ~(SDHC_DOING_READ | SDHC_DOING_WRITE |
Signature · 1 line
2.55.0
[PULL 06/17] hw/ide/atapi: fix abort on CD-ROM reads past LBA 2^31
In reply to Philippe Mathieu-DaudéFrom: "Denis V. Lunev" <[email protected]>
cmd_read() and cmd_read_cd() check the 32-bit LBA from the CDB against the medium size, then pass it to ide_atapi_cmd_read() as an int. On a medium larger than 4 TiB, a read at LBA 2^31 or above passes the range check, turns negative and trips the assertion:
hw/ide/atapi.c:315: ide_atapi_cmd_read_pio: Assertion `0 <= lba && lba < (s->nb_sectors >> 2)' failed.
Reading the last sector is enough, e.g. a UDF anchor probe, so the guest aborts QEMU just by looking at the disc.
Pass the LBA as uint32_t, which is what the CDB carries, and widen IDEState.lba to int64_t so it holds every valid LBA and keeps -1 as the "not a sector read" marker. The field is not migrated.
Message-ID: <[email protected]>
Message-ID: <[email protected]>
--- include/hw/ide/ide-dev.h | 2 +- hw/ide/atapi.c | 22 +++++++++++----------- hw/ide/macio.c | 2 +- tests/qtest/ahci-test.c | 36 ++++++++++++++++++++++++++++++++++++ hw/ide/trace-events | 8 ++++---- 5 files changed, 53 insertions(+), 17 deletions(-)
include/hw/ide/ide-dev.h +1 -1
@@ -101,7 +101,7 @@ struct IDEState {int packet_transfer_size;int elementary_transfer_size;int32_t io_buffer_index; -int lba; +int64_t lba;int cd_sector_size;int atapi_dma;/* true if dma is requested for the packet cmd */ BlockAcctCookie acct;
hw/ide/atapi.c +11 -11
@@ -47,7 +47,7 @@ static void padstr8(uint8_t *buf, int buf_size, const char *src) } } -static void lba_to_msf (uint8_t *buf,int lba) +static void lba_to_msf (uint8_t *buf,int64_t lba) { lba +=150 ; buf[0 ] = (lba /75 ) /60 ;
@@ -71,7 +71,7 @@ static inline int media_is_cd(IDEState *s)return (media_present (s) && s->nb_sectors <=CD_MAX_SECTORS ); } -static void cd_data_to_raw (uint8_t *buf,int lba) +static void cd_data_to_raw (uint8_t *buf,int64_t lba) {/* sync bytes */ buf[0 ] =0x00 ;
@@ -309,10 +309,10 @@ static void ide_atapi_cmd_reply(IDEState *s, int size, int max_size) }/* start a CD-ROM read command */ -static void ide_atapi_cmd_read_pio (IDEState *s,int lba,int nb_sectors, -int sector_size) +static void ide_atapi_cmd_read_pio (IDEState *s,uint32_t lba, +int nb_sectors,int sector_size) { -assert (0 <= lba && lba < (s->nb_sectors >>2 )); +assert (lba < (s->nb_sectors >>2 )); s->lba = lba; s->packet_transfer_size = nb_sectors * sector_size;
@@ -409,10 +409,10 @@ eot:/* start a CD-ROM read command with DMA */ /* XXX: test if DMA is available */ -static void ide_atapi_cmd_read_dma (IDEState *s,int lba,int nb_sectors, -int sector_size) +static void ide_atapi_cmd_read_dma (IDEState *s,uint32_t lba, +int nb_sectors,int sector_size) { -assert (0 <= lba && lba < (s->nb_sectors >>2 )); +assert (lba < (s->nb_sectors >>2 )); s->lba = lba; s->packet_transfer_size = nb_sectors * sector_size;
@@ -427,7 +427,7 @@ static void ide_atapi_cmd_read_dma(IDEState *s, int lba, int nb_sectors,ide_start_dma (s, ide_atapi_cmd_read_dma_cb); } -static void ide_atapi_cmd_read (IDEState *s,int lba,int nb_sectors, +static void ide_atapi_cmd_read (IDEState *s,uint32_t lba,int nb_sectors,int sector_size) { trace_ide_atapi_cmd_read(s, s->atapi_dma ? "dma" : "pio",
@@ -983,7 +983,7 @@ static void cmd_read(IDEState *s, uint8_t* buf) } lba =ldl_be_p (buf +2 ); -if (lba >= total_sectors || lba + nb_sectors -1 >= total_sectors) { +if (lba >= total_sectors || nb_sectors > total_sectors - lba) {ide_atapi_cmd_error (s,ILLEGAL_REQUEST ,ASC_LOGICAL_BLOCK_OOR );return ; }
@@ -1005,7 +1005,7 @@ static void cmd_read_cd(IDEState *s, uint8_t* buf) } lba =ldl_be_p (buf +2 ); -if (lba >= total_sectors || lba + nb_sectors -1 >= total_sectors) { +if (lba >= total_sectors || nb_sectors > total_sectors - lba) {ide_atapi_cmd_error (s,ILLEGAL_REQUEST ,ASC_LOGICAL_BLOCK_OOR );return ; }
hw/ide/macio.c +1 -1
@@ -396,7 +396,7 @@ static void ide_dbdma_start(const IDEDMA *dma, IDEState *s,MACIO_DPRINTF ("\n\n------------ IDE transfer\n" );MACIO_DPRINTF ("buffer_size: %x buffer_index: %x\n" , s->io_buffer_size, s->io_buffer_index); -MACIO_DPRINTF ("lba: %x size: %x\n" , s->lba, s->io_buffer_size); +MACIO_DPRINTF ("lba: %" PRIx64" size: %x\n" , s->lba, s->io_buffer_size);MACIO_DPRINTF ("-------------------------\n" ); m->dma_active = true;
tests/qtest/ahci-test.c +36 -0
@@ -1737,6 +1737,40 @@ static void test_cdrom_pio_raw(void)ahci_test_cdrom_raw (3 , false); } +/* Regression test: read the last sector of a medium over 4 TiB. */ +static void ahci_test_cdrom_high_lba (bool dma) +{ +AHCIQState *ahci; + g_autofree unsigned char *tx = g_malloc0(ATAPI_SECTOR_SIZE); +uint64_t lba = (uint64_t )INT32_MAX +1 ; +AHCIOpts opts = { + .size =ATAPI_SECTOR_SIZE , + .lba = lba, + .atapi = true, + .atapi_dma = dma, + .post_cb = ahci_cb_cmp_buff, + .opaque = tx, + }; + + ahci =ahci_boot_and_enable ("-blockdev driver=null-co,node-name=cd0," +"read-only=on,read-zeroes=on,size=%" PRIu64" " +"-M q35 " +"-device ide-cd,drive=cd0 " , + (lba +1 ) *ATAPI_SECTOR_SIZE ); +ahci_exec (ahci,ahci_port_select (ahci),CMD_ATAPI_READ_10 , &opts); +ahci_shutdown (ahci); +} + +static void test_cdrom_dma_high_lba (void ) +{ +ahci_test_cdrom_high_lba (true); +} + +static void test_cdrom_pio_high_lba (void ) +{ +ahci_test_cdrom_high_lba (false); +} +/* * Regression test: a buffered ATAPI read completing after a command * engine restart must not dereference the cleared cur_cmd. Cover both
@@ -2427,6 +2461,8 @@ int main(int argc, char **argv)qtest_add_func ("/ahci/cdrom/pio/single" , test_cdrom_pio);qtest_add_func ("/ahci/cdrom/pio/multi" , test_cdrom_pio_multi);qtest_add_func ("/ahci/cdrom/pio/raw" , test_cdrom_pio_raw); +qtest_add_func ("/ahci/cdrom/dma/high_lba" , test_cdrom_dma_high_lba); +qtest_add_func ("/ahci/cdrom/pio/high_lba" , test_cdrom_pio_high_lba);qtest_add_func ("/ahci/cdrom/pio/bcl" , test_atapi_bcl);qtest_add_func ("/ahci/cdrom/eject" , test_atapi_tray);
hw/ide/trace-events +4 -4
@@ -52,17 +52,17 @@ bmdma_write_via(uint64_t addr, uint64_t val) "bmdma: writeb 0x%"PRIx64" : 0x%02" # atapi.c cd_read_sector_sync(int lba) "lba=%d" -cd_read_sector_cb(int lba, int ret) "lba=%d ret=%d" -cd_read_sector(int lba) "lba=%d" +cd_read_sector_cb(int64_t lba, int ret) "lba=%"PRId64" ret=%d" +cd_read_sector(int64_t lba) "lba=%"PRId64 ide_atapi_cmd_error(void *s, int sense_key, int asc) "IDEState: %p; sense=0x%x asc=0x%x" ide_atapi_cmd_reply_end(void *s, int tx_size, int elem_tx_size, int32_t index) "IDEState %p; reply: tx_size=%d elem_tx_size=%d index=%"PRId32 ide_atapi_cmd_reply_end_eot(void *s, int status) "IDEState: %p; end of transfer, status=0x%x" ide_atapi_cmd_reply_end_bcl(void *s, int bcl) "IDEState: %p; byte_count_limit=%d" ide_atapi_cmd_reply_end_new(void *s, int status) "IDEState: %p; new transfer started, status=0x%x" ide_atapi_cmd_check_status(void *s) "IDEState: %p" -ide_atapi_cmd_read(void *s, const char *method, int lba, int nb_sectors) "IDEState: %p; read %s: LBA=%d nb_sectors=%d" +ide_atapi_cmd_read(void *s, const char *method, uint32_t lba, int nb_sectors) "IDEState: %p; read %s: LBA=%"PRIu32" nb_sectors=%d" ide_atapi_cmd(void *s, uint8_t cmd) "IDEState: %p; cmd: 0x%02x" -ide_atapi_cmd_read_dma_cb_aio(void *s, int lba, int n) "IDEState: %p; aio read: lba=%d n=%d" +ide_atapi_cmd_read_dma_cb_aio(void *s, int64_t lba, int n) "IDEState: %p; aio read: lba=%"PRId64" n=%d" # Warning: Verbose ide_atapi_cmd_packet(void *s, uint16_t limit, const char *packet) "IDEState: %p; limit=0x%x packet: %s"
Signature · 1 line
2.55.0
[PULL 02/17] hw/sd/sdcard: Validate migrated blk_len in post_load
In reply to Philippe Mathieu-DaudéFrom: Harshit Mukhedkar <[email protected]>
Migration streams are untrusted input. A crafted stream can set blk_len larger than the 512 byte data[] buffer, so a later block read passes that length to blk_pread() and overflows data[] on the host heap.
Reject such state in post_load.
Cc: [email protected]
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4725
--- hw/sd/sd.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
hw/sd/sd.c +13 -0
@@ -1073,11 +1073,24 @@ static int sd_vmstate_pre_load(void *opaque)return 0 ; } +static int sd_vmstate_post_load (void *opaque,int version_id) +{ +SDState *sd = opaque; + +/* Check for blk_len that overflows data[] */ +if (sd->blk_len >sizeof (sd->data)) { +return -EINVAL ; + } + +return 0 ; +} +static const VMStateDescription sd_vmstate = { .name ="sd-card" , .version_id =2 , .minimum_version_id =2 , .pre_load = sd_vmstate_pre_load, + .post_load = sd_vmstate_post_load, .fields = (const VMStateField []) {VMSTATE_UNUSED (4 ),VMSTATE_INT32 (state, SDState),
Signature · 1 line
2.55.0
[PULL 07/17] hw/dma/i8257: Read the mask from the RWAMB port
In reply to Philippe Mathieu-DaudéThe 82C37-compatible register layout, as documented in the PIIX3 datasheet, has the write-only request register at I/O 0x09 and the read/write-all-mask register at 0x0F.
Move the mask read to the latter.
Message-ID: <[email protected]>
--- hw/dma/i8257.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/dma/i8257.c +1 -1
@@ -281,7 +281,7 @@ static uint64_t i8257_read_cont(void *opaque, hwaddr nport, unsigned size) val = d->status; d->status &=0xf0 ;break ; -case 0x01 :/* mask */ +case 0x07 :/* read all mask bits (RWAMB) */ val = d->mask;break ;default :
Signature · 1 line
2.55.0
[PULL 04/17] hw/sd/sdcard: Reject zero block length (CMD16)
In reply to Philippe Mathieu-DaudéSET_BLOCKLEN (CMD16) accepts a zero block length. A following READ_SINGLE_BLOCK (CMD17) on a Standard Capacity card then reads 0 bytes from the backing image and enters the sending-data state with the data size of the previous transfer, so the guest reads back stale SDState::data[] content, such as the password sent by a previous LOCK_UNLOCK (CMD42):
CMD42 (set password "secret-password!")
CMD16 0
CMD17 -> data block contains "secret-password!"
The spec only requires BLOCK_LEN_ERROR above 512 bytes, but a zero length cannot carry any data. Reject a zero block length: set BLOCK_LEN_ERROR and keep the current block length.
Message-ID: <[email protected]>
--- hw/sd/sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/sd/sd.c +1 -1
@@ -1974,7 +1974,7 @@ static sd_rsp_type_t sd_cmd_SET_BLOCKLEN(SDState *sd, SDRequest req)if (sd->state != sd_transfer_state) {return sd_invalid_state_for_cmd (sd, req); } -if (req.arg > (1 <<HWBLOCK_SHIFT )) { +if (req.arg ==0 || req.arg > (1 <<HWBLOCK_SHIFT )) { sd->card_status |=BLOCK_LEN_ERROR ; }else {trace_sdcard_set_blocklen (req.arg);
Signature · 1 line
2.55.0
[PULL 10/17] hw/display/vmware_vga: Reject attempts to set resolution outside VRAM size
In reply to Philippe Mathieu-DaudéFrom: Peter Maydell <[email protected]>
The vmware_vga device limits the maximum width and height of the screen, but the maximum total resolution those limits allow (2368 x 1770) can be too large for the configured VRAM size, if the user has set that to something smaller than the 16MB default. We don't check that, so we will set up a display surface bigger than the backing VRAM and QEMU will crash when we try to draw it.
Cc: [email protected]
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4898
Message-ID: <[email protected]>
--- hw/display/vmware_vga.c | 5 +++++ 1 file changed, 5 insertions(+)
hw/display/vmware_vga.c +5 -0
@@ -1136,6 +1136,11 @@ static inline void vmsvga_check_size(struct vmsvga_state_s *s)pixman_format_code_t format =qemu_default_pixman_format (s->new_depth, true);trace_vmware_setmode (s->new_width, s->new_height, s->new_depth); + +/* Ignore attempts to set a resolution too large for the VRAM */ +if ((uint64_t )s->new_height * stride > s->vga.vram_size) { +return ; + } surface =qemu_create_displaysurface_from (s->new_width, s->new_height, format, stride, s->vga.vram_ptr);
Signature · 1 line
2.55.0
[PULL 08/17] hw/display/vmware_vga: Zero-initialize scratch space
In reply to Philippe Mathieu-DaudéFrom: Peter Maydell <[email protected]>
The vmware_vga device has a set of scratch registers which the guest can use for anything it likes; we implement these by backing them with a lump of memory pointed to by s->scratch. However, we allocate it with g_malloc(), which means they start out with uninitialized contents. We should zero this memory so that we don't potentially leak host memory contents to the guest, and so that the guest will always see deterministic values.
Since s->scratch has type "uint32_t *" and s->scratch_size is its size in 32-bit words, prefer g_new0() over g_malloc0() for this.
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4519
Message-ID: <[email protected]>
--- hw/display/vmware_vga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/display/vmware_vga.c +1 -1
@@ -1256,7 +1256,7 @@ static void vmsvga_init(DeviceState *dev, struct vmsvga_state_s *s, MemoryRegion *address_space, MemoryRegion *io) { s->scratch_size =SVGA_SCRATCH_SIZE ; - s->scratch =g_malloc (s->scratch_size *4 ); + s->scratch =g_new0 (uint32_t, s->scratch_size); s->vga.con =qemu_graphic_console_create (dev,0 , &vmsvga_ops, s);
Signature · 1 line
2.55.0
[PULL 13/17] hw/block/pflash_cfi01: Register VM change handler once
In reply to Philippe Mathieu-DaudéEach pflash_post_load() added a VM change-state handler and overwrote pfl->vmstate. Loading twice before the VM resumes left the first entry on the list, and resuming then ran a freed entry. Register the handler only when none is held.
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/2635
Message-ID: <[email protected]>
--- hw/block/pflash_cfi01.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
hw/block/pflash_cfi01.c +2 -1
@@ -1039,7 +1039,8 @@ static int pflash_post_load(void *opaque, int version_id)memory_region_rom_device_set_romd (&pfl->mem, false); } -if (!pfl->ro) { +/* A second load before the VM resumes must not add a duplicate entry */ +if (!pfl->ro && !pfl->vmstate) { pfl->vmstate =qemu_add_vm_change_state_handler (postload_update_cb, pfl); }
Signature · 1 line
2.55.0
[PULL 12/17] hw/dma/i8257: Honor the command register group-disable bit
In reply to Philippe Mathieu-DaudéCommand bit 2 of the 82C37-compatible DMA controller disables the channel group (PIIX3 datasheet, section 2.5.1.1). The model accepted but ignored it.
Gate servicing on that bit and re-run the engine after a command write so re-enabling resumes pending requests.
Message-ID: <[email protected]>
--- hw/dma/i8257.c | 7 +++++++ 1 file changed, 7 insertions(+)
hw/dma/i8257.c +7 -0
@@ -195,6 +195,8 @@ static void i8257_write_cont(void *opaque, hwaddr nport, uint64_t data,return ; } d->command = data; +/* A pending request may be serviced once the group is enabled. */ +i8257_dma_run (d);break ;case 0x01 :
@@ -354,6 +356,11 @@ static void i8257_dma_run(void *opaque)int ichan;int rearm =0 ; +/* DCOM bit 2 disables the channel group. */ +if (d->command &CMD_BLOCK_CONTROLLER ) { +return ; + } +if (d->running) { rearm =1 ; goto out;
Signature · 1 line
2.55.0
[PULL 15/17] hw/block/pflash_cfi01: Reject out-of-range blk_offset on load
In reply to Philippe Mathieu-DaudéA migration stream can set blk_offset beyond the flash storage. The write-confirm path would then write past the end of it. Check that the pending write block fits in the storage in pflash_post_load() and fail the load.
Cc: [email protected]
Reported-by: phudd6 & kietvha1 from Viettel Cyber Security
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4388
Message-ID: <[email protected]>
--- hw/block/pflash_cfi01.c | 7 +++++++ 1 file changed, 7 insertions(+)
hw/block/pflash_cfi01.c +7 -0
@@ -1028,6 +1028,13 @@ static void postload_update_cb(void *opaque, bool running, RunState state)static int pflash_post_load (void *opaque,int version_id) {PFlashCFI01 *pfl = opaque; +uint64_t size = pfl->sector_len * pfl->nb_blocs; + +if (pfl->blk_offset !=-1 + && (pfl->blk_offset >= size + || size - pfl->blk_offset < pfl->writeblock_size)) { +return -EINVAL ; + }/* * ROMD mode is not in the VMState; derive it from the migrated
Signature · 1 line
2.55.0
[PULL 14/17] hw/block/pflash_cfi01: Allow zero-count buffer write
In reply to Philippe Mathieu-DaudéLinux's Intel CFI driver emits a zero count for a single buffered write (one write cycle, at any bank width). The block update buffer was only started for non-zero counts, so the data was rejected with a programming error. Enable the block update buffer for any count.
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4111
Message-ID: <[email protected]>
--- hw/block/pflash_cfi01.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/block/pflash_cfi01.c +1 -1
@@ -605,7 +605,7 @@ static void pflash_write(PFlashCFI01 *pfl, hwaddr offset,switch (pfl->cmd) {case 0xe8 :/* Block write */ /* FIXME check @offset, @width */ -if (pfl->blk_offset ==-1 && pfl->counter) { +if (pfl->blk_offset ==-1 ) {pflash_blk_write_start (pfl, offset); }if (!pfl->ro && (pfl->blk_offset !=-1 )) {
Signature · 1 line
2.55.0
[PULL 11/17] hw/display/vmware-vga: Check incoming migration width and height
In reply to Philippe Mathieu-DaudéFrom: Peter Maydell <[email protected]>
The vmware-vga code sanitizes the screen width and height when the guest tries to set them. Apply similar checks on the incoming migration data. This prevents a manipulated migration stream from being able to cause us to create a surface that exceeds the size of vram.
Since we already put in a check against creating a surface that is too large, the checks here are for:
* ruling out a negative width and height
* catching the issue and failing migration rather than letting it pass and then coping with the out-of-range values later
Cc: [email protected]
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/3870
Message-ID: <[email protected]>
--- hw/display/vmware_vga.c | 5 +++++ 1 file changed, 5 insertions(+)
hw/display/vmware_vga.c +5 -0
@@ -1211,6 +1211,11 @@ static int vmsvga_post_load(void *opaque, int version_id) {struct vmsvga_state_s *s = opaque; +if (s->new_width <0 || s->new_width >SVGA_MAX_WIDTH || + s->new_height <0 || s->new_height >SVGA_MAX_HEIGHT ) { +return -1 ; + } + s->invalidated =1 ;if (s->config) { s->fifo = (uint32_t *) s->fifo_ptr;
Signature · 1 line
2.55.0
[PULL 16/17] hw/block/pflash_cfi02: Return to read-array mode on reset
In reply to Philippe Mathieu-DaudéReset left the ROM device in MMIO mode when reset in a command sequence, unlike pflash_cfi01. Use the read-array transition.
Message-ID: <[email protected]>
--- hw/block/pflash_cfi02.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/block/pflash_cfi02.c +1 -1
@@ -958,7 +958,7 @@ static void pflash_cfi02_reset(DeviceState *dev) {PFlashCFI02 *pfl =PFLASH_CFI02 (dev); -pflash_reset_state_machine (pfl); +pflash_mode_read_array (pfl); }static const Property pflash_cfi02_properties[] = {
Signature · 1 line
2.55.0
[PULL 17/17] hw/ppc/amigaone: Invalidate TBs on NVRAM write
In reply to Philippe Mathieu-DaudéThe NVRAM is a ROM device, mapped in romd mode, so the guest can execute from it. Its write callback stores the byte with a direct store, which TCG does not see: translated blocks of the byte survive.
Flush the written byte, as the other models (TYPE_PFLASH_CFI01/2 and TYPE_NRF51_NVM) do.
Message-ID: <[email protected]>
--- hw/ppc/amigaone.c | 1 + 1 file changed, 1 insertion(+)
hw/ppc/amigaone.c +1 -0
@@ -109,6 +109,7 @@ static void nvram_write(void *opaque, hwaddr addr, uint64_t val,uint8_t *p =memory_region_get_ram_ptr (&s->mr); p[addr] = val; +memory_region_flush_rom_device (&s->mr, addr,1 );if (s->blk &&blk_pwrite (s->blk, addr,1 , &val,0 ) <0 ) {error_report ("%s: could not write %s" , __func__,blk_name (s->blk)); }
Signature · 1 line
2.55.0
[PULL 09/17] hw/display/vmware_vga: Check for bogus FIFO_STOP and FIFO_NEXT values
In reply to Philippe Mathieu-DaudéFrom: Peter Maydell <[email protected]>
The guest should never program the FIFO head and tail offsets (in the FIFO_NEXT and FIFO_STOP registers) to something outside the bounds of the memory area it has defined as for the FIFO via the FIFO_MIN and FIFO_MAX registers. If it does that, return a zero fifo length as we do for various other bad values.
Bad values here won't cause any serious problems as we were rejecting offsets that would cause us to index outside the s->fifo[] array; but they're better rejected. For safety's sake we add an assertion on the fifo cursor before we read it.
Message-ID: <[email protected]>
--- hw/display/vmware_vga.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
hw/display/vmware_vga.c +8 -3
@@ -581,8 +581,10 @@ static inline int vmsvga_fifo_length(struct vmsvga_state_s *s) }if (s->fifo_max >SVGA_FIFO_SIZE || s->fifo_min >=SVGA_FIFO_SIZE || - s->fifo_stop >=SVGA_FIFO_SIZE || - s->fifo_next >=SVGA_FIFO_SIZE ) { + s->fifo_stop < s->fifo_min || + s->fifo_stop >= s->fifo_max || + s->fifo_next < s->fifo_min || + s->fifo_next >= s->fifo_max) {return 0 ; }if (s->fifo_max < s->fifo_min +10 * KiB) {
@@ -598,7 +600,10 @@ static inline int vmsvga_fifo_length(struct vmsvga_state_s *s)static inline uint32_t vmsvga_fifo_read_raw (struct vmsvga_state_s *s) { -uint32_t cmd = s->fifo[s->fifo_stop >>2 ]; +uint32_t cmd; + +assert (s->fifo_stop <SVGA_FIFO_SIZE ); + cmd = s->fifo[s->fifo_stop >>2 ]; s->fifo_stop +=4 ;if (s->fifo_stop >= s->fifo_max) {
Signature · 1 line
2.55.0
Quoted 23 lines · Philippe Mathieu-Daudé
The following changes since commit
6bf90d4fc5027567cb704d7888f5ec792b4ed75a:Merge tag 'pull-target-arm-20261124' of https://gitlab.com/pm215/qemu into staging (2026-11-24 07:09:41 -0800)are available in the Git repository at:
https://github.com/philmd/qemu.git tags/hw-misc-20261124for you to fetch changes up to
c3800302668ff745e10b810f12723eac7068abda:hw/ppc/amigaone: Invalidate TBs on NVRAM write (2026-11-25 00:02:01 +0100)----------------------------------------------------------------
Misc fixes for 11.2- SD (card, controller)
- VMWare VGA display
- Parallel NOR Flashes
- I8257 DMA controller
- IDE ATAPI layer
- Amiga One
----------------------------------------------------------------
Quoted 2 lines
Denis V. Lunev (1):
hw/ide/atapi: fix abort on CD-ROM reads past LBA 2^31
Please drop this PR, there is a issue with this patch I missed earlier:
KVM: entry failed, hardware error 0x7
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =f000 ffff0000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT= 00000000 0000ffff
IDT= 00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
Code=09 66 31 ca 80 fa 80 80 d9 00 66 0f b6 d1 e9 ce b6 cd 1b cb <ea> 5b e0 00 f0 30 36 2f 32 33 2f 39 39 00 fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
KVM: entry failed, hardware error 0x7
EAX=00000000 EBX=00000000 ECX=00000010 EDX=000fd090 ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 EIP=000fd090 EFL=00000007 [-----PC] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA]
CS =0008 00000000 ffffffff 00c09b00 DPL=0 CS32 [-RA]
SS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA] FS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA] GS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA]
LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT
TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy
GDT= 000f6220 00000037
IDT= 000f625e 00000000
CR0=00000011 CR2=00000000 CR3=00000000 CR4=00000000
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000000
Code=e8 43 3b ff ff 0f aa fa fc 66 ba 90 d0 0f 00 e9 ba fe f3 90 <f0> 0f ba 2d 28 4b 0f 00 00 72 f3 8b 25 24 4b 0f 00 e8 72 3d ff ff c7 05 28 4b 0f 00 00 00
KVM: entry failed, hardware error 0x7
EAX=00000000 EBX=00000000 ECX=00000010 EDX=000fd090
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=000fd099 EFL=00000007 [-----PC] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA]
CS =0008 00000000 ffffffff 00c09b00 DPL=0 CS32 [-RA]
SS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA] FS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA] GS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA]
LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT
TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy
GDT= 000f6220 00000037
IDT= 000f625e 00000000
CR0=00000011 CR2=00000000 CR3=00000000 CR4=00000000
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000000
Code=66 ba 90 d0 0f 00 e9 ba fe f3 90 f0 0f ba 2d 28 4b 0f 00 00 <72> f3 8b 25 24 4b 0f 00 e8 72 3d ff ff c7 05 28 4b 0f 00 00 00 00 00 f4 eb fd fa fc 66 b8
I'll drop the patch and send v2 once tested.
Quoted 90 lines · Philippe Mathieu-Daudé
Quoted 24 lines · Philippe Mathieu-Daudé
The following changes since commit
6bf90d4fc5027567cb704d7888f5ec792b4ed75a:Merge tag 'pull-target-arm-20261124' of https://gitlab.com/pm215/ qemu into staging (2026-11-24 07:09:41 -0800)
are available in the Git repository at:
https://github.com/philmd/qemu.git tags/hw-misc-20261124
for you to fetch changes up to
c3800302668ff745e10b810f12723eac7068abda:hw/ppc/amigaone: Invalidate TBs on NVRAM write (2026-11-25 00:02:01 +0100)
----------------------------------------------------------------
Misc fixes for 11.2- SD (card, controller)
- VMWare VGA display
- Parallel NOR Flashes
- I8257 DMA controller
- IDE ATAPI layer
- Amiga One
----------------------------------------------------------------Quoted 2 lines
Denis V. Lunev (1):
hw/ide/atapi: fix abort on CD-ROM reads past LBA 2^31Please drop this PR, there is a issue with this patch I missed earlier:
KVM: entry failed, hardware error
0x7
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 000000000000ffff00009300
CS =f000ffff00000000ffff00009b00
SS =0000 000000000000ffff00009300
DS =0000 000000000000ffff00009300
FS =0000 000000000000ffff00009300
GS =0000 000000000000ffff00009300
LDT=0000 000000000000ffff00008200
TR =0000 000000000000ffff00008b00
GDT= 000000000000ffff
IDT= 000000000000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
Code=09 66 31 ca 80 fa 80 80 d9 00 66 0f b6 d1 e9 ce b6 cd 1b cb <ea> 5b e0 00 f0 30 36 2f 32 33 2f 39 39 00 fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00KVM: entry failed, hardware error
0x7
EAX=00000000 EBX=00000000 ECX=00000010 EDX=000fd090
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=000fd090 EFL=00000007 [-----PC] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0010 00000000 ffffffff00c09300DPL=0 DS [-WA]
CS =0008 00000000 ffffffff00c09b00DPL=0 CS32 [-RA]
SS =0010 00000000 ffffffff00c09300DPL=0 DS [-WA]
DS =0010 00000000 ffffffff00c09300DPL=0 DS [-WA]
FS =0010 00000000 ffffffff00c09300DPL=0 DS [-WA]
GS =0010 00000000 ffffffff00c09300DPL=0 DS [-WA]
LDT=0000 000000000000ffff00008200 DPL=0 LDT
TR =0000 000000000000ffff00008b00DPL=0 TSS32-busy
GDT=000f622000000037
IDT=000f625e00000000
CR0=00000011 CR2=00000000 CR3=00000000 CR4=00000000
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000000
Code=e8 43 3b ff ff 0f aa fa fc 66 ba 90 d0 0f 00 e9 ba fe f3 90 <f0> 0f ba 2d 28 4b 0f 00 00 72 f3 8b 25 24 4b 0f 00 e8 72 3d ff ff c7 05 28 4b 0f 00 00 00
KVM: entry failed, hardware error0x7
EAX=00000000 EBX=00000000 ECX=00000010 EDX=000fd090
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=000fd099 EFL=00000007 [-----PC] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0010 00000000 ffffffff00c09300DPL=0 DS [-WA]
CS =0008 00000000 ffffffff00c09b00DPL=0 CS32 [-RA]
SS =0010 00000000 ffffffff00c09300DPL=0 DS [-WA]
DS =0010 00000000 ffffffff00c09300DPL=0 DS [-WA]
FS =0010 00000000 ffffffff00c09300DPL=0 DS [-WA]
GS =0010 00000000 ffffffff00c09300DPL=0 DS [-WA]
LDT=0000 000000000000ffff00008200 DPL=0 LDT
TR =0000 000000000000ffff00008b00DPL=0 TSS32-busy
GDT=000f622000000037
IDT=000f625e00000000
CR0=00000011 CR2=00000000 CR3=00000000 CR4=00000000
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000000
Code=66 ba 90 d0 0f 00 e9 ba fe f3 90 f0 0f ba 2d 28 4b 0f 00 00 <72> f3 8b 25 24 4b 0f 00 e8 72 3d ff ff c7 05 28 4b 0f 00 00 00 00 00 f4 eb fd fa fc 66 b8
Quoted 1 line
I'll drop the patch and send v2 once tested.
I could reproduce with / without the IDE patch, and also tried with / without the I8257 DMAC ones, so this isn't related to this series but to a flaky CI host/KVM or nested-VMX setup, apparently tripping when boot_sector_test() starts with 260 vCPUs:
▶ 1/388 /i386/acpi/q35/core-count2 - ERROR:../tests/qtest/boot-sector.c:166:boot_sector_test: assertion failed (qdict_get_try_str(qret, "status") == "running"): ("internal-error" == "running") FAIL
▶ 1/388
ERROR
1/388 qtest+qtest-i386+slow - qemu:qtest-i386/bios-tables-test
ERROR 29.63s killed by
signal 6 SIGABRT
stderr:
qemu-system-i386: -accel kvm: warning: Number of hotpluggable cpus requested (6) exceeds the recommended cpus supported by KVM (4)
qemu-system-i386: -accel kvm: warning: Number of hotpluggable cpus requested (6) exceeds the recommended cpus supported by KVM (4)
qemu-system-i386: -accel kvm: warning: Number of SMP cpus requested (100) exceeds the recommended cpus supported by KVM (4)
qemu-system-i386: -accel kvm: warning: Number of hotpluggable cpus requested (120) exceeds the recommended cpus supported by KVM (4)
qemu-system-i386: -accel kvm: warning: Number of SMP cpus requested (54) exceeds the recommended cpus supported by KVM (4)
qemu-system-i386: -accel kvm: warning: Number of hotpluggable cpus requested (54) exceeds the recommended cpus supported by KVM (4)
qemu-system-i386: -accel kvm: warning: Number of SMP cpus requested (260) exceeds the recommended cpus supported by KVM (4)
qemu-system-i386: -accel kvm: warning: Number of hotpluggable cpus requested (260) exceeds the recommended cpus supported by KVM (4)
KVM: entry failed, hardware error 0x7
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =f000 ffff0000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT= 00000000 0000ffff
IDT= 00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
Code=09 66 31 ca 80 fa 80 80 d9 00 66 0f b6 d1 e9 ce b6 cd 1b cb <ea> 5b e0 00 f0 30 36 2f 32 33 2f 39 39 00 fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 **
ERROR:../tests/qtest/boot-sector.c:166:boot_sector_test: assertion failed (qdict_get_try_str(qret, "status") == "running"): ("internal-error" == "running") ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
▶ 2/388 /x86_64/acpi/q35/core-count2 - ERROR:../tests/qtest/boot-sector.c:166:boot_sector_test: assertion failed (qdict_get_try_str(qret, "status") == "running"): ("internal-error" == "running") FAIL
▶ 2/388
ERROR
2/388 qtest+qtest-x86_64+slow - qemu:qtest-x86_64/bios-tables-test
ERROR 43.19s killed by
signal 6 SIGABRT
stderr:
qemu-system-x86_64: -accel kvm: warning: Number of hotpluggable cpus requested (6) exceeds the recommended cpus supported by KVM (4)
qemu-system-x86_64: -accel kvm: warning: Number of hotpluggable cpus requested (6) exceeds the recommended cpus supported by KVM (4)
qemu-system-x86_64: -accel kvm: warning: Number of SMP cpus requested (100) exceeds the recommended cpus supported by KVM (4)
qemu-system-x86_64: -accel kvm: warning: Number of hotpluggable cpus requested (120) exceeds the recommended cpus supported by KVM (4)
qemu-system-x86_64: -accel kvm: warning: Number of SMP cpus requested (54) exceeds the recommended cpus supported by KVM (4)
qemu-system-x86_64: -accel kvm: warning: Number of hotpluggable cpus requested (54) exceeds the recommended cpus supported by KVM (4)
qemu-system-x86_64: -accel kvm: warning: Number of SMP cpus requested (260) exceeds the recommended cpus supported by KVM (4)
qemu-system-x86_64: -accel kvm: warning: Number of hotpluggable cpus requested (260) exceeds the recommended cpus supported by KVM (4)
KVM: entry failed, hardware error 0x7
EAX=00000000 EBX=00000000 ECX=00000010 EDX=000fd090
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=000fd090 EFL=00000007 [-----PC] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA]
CS =0008 00000000 ffffffff 00c09b00 DPL=0 CS32 [-RA]
SS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA] FS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA] GS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA]
LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT
TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy
GDT= 000f6220 00000037
IDT= 000f625e 00000000
CR0=00000011 CR2=00000000 CR3=00000000 CR4=00000000
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000000
Code=e8 43 3b ff ff 0f aa fa fc 66 ba 90 d0 0f 00 e9 ba fe f3 90 <f0> 0f ba 2d 28 4b 0f 00 00 72 f3 8b 25 24 4b 0f 00 e8 72 3d ff ff c7 05 28 4b 0f 00 00 00
KVM: entry failed, hardware error 0x7
EAX=00000000 EBX=00000000 ECX=00000010 EDX=000fd090
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=000fd099 EFL=00000007 [-----PC] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA]
CS =0008 00000000 ffffffff 00c09b00 DPL=0 CS32 [-RA]
SS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA] FS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA] GS =0010 00000000 ffffffff 00c09300 DPL=0 DS [-WA]
LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT
TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy
GDT= 000f6220 00000037
IDT= 000f625e 00000000
CR0=00000011 CR2=00000000 CR3=00000000 CR4=00000000
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000000
Code=66 ba 90 d0 0f 00 e9 ba fe f3 90 f0 0f ba 2d 28 4b 0f 00 00 <72> f3 8b 25 24 4b 0f 00 e8 72 3d ff ff c7 05 28 4b 0f 00 00 00 00 00 f4 eb fd fa fc 66 b8 **
ERROR:../tests/qtest/boot-sector.c:166:boot_sector_test: assertion failed (qdict_get_try_str(qret, "status") == "running"): ("internal-error" == "running") ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
I updated the tag to include Marc-André R-b tags, otherwise no change:
hw-misc-20261124 (new hash 1ce5a76136be).
Quoted 25 lines · Philippe Mathieu-Daudé
Quoted 24 lines · Philippe Mathieu-Daudé
The following changes since commit
6bf90d4fc5027567cb704d7888f5ec792b4ed75a:Merge tag 'pull-target-arm-20261124' of https://gitlab.com/pm215/ qemu into staging (2026-11-24 07:09:41 -0800)
are available in the Git repository at:
https://github.com/philmd/qemu.git tags/hw-misc-20261124
for you to fetch changes up to
c3800302668ff745e10b810f12723eac7068abda:hw/ppc/amigaone: Invalidate TBs on NVRAM write (2026-11-25 00:02:01 +0100)
----------------------------------------------------------------
Misc fixes for 11.2- SD (card, controller)
- VMWare VGA display
- Parallel NOR Flashes
- I8257 DMA controller
- IDE ATAPI layer
- Amiga One
----------------------------------------------------------------
Quoted 5 lines
Quoted 2 lines
Denis V. Lunev (1):
hw/ide/atapi: fix abort on CD-ROM reads past LBA 2^31Please drop this PR, there is a issue with this patch I missed earlier:
Ouch. I just pushed it. Please send whatever revert/fix required.
r~
Richard Henderson
AppliedQuoted 15 lines · Philippe Mathieu-Daudé
The following changes since commit
6bf90d4fc5027567cb704d7888f5ec792b4ed75a:Merge tag 'pull-target-arm-20261124' ofhttps://gitlab.com/pm215/qemu into staging (2026-11-24 07:09:41 -0800)are available in the Git repository at:
https://github.com/philmd/qemu.git tags/hw-misc-20261124for you to fetch changes up to
c3800302668ff745e10b810f12723eac7068abda:hw/ppc/amigaone: Invalidate TBs on NVRAM write (2026-11-25 00:02:01 +0100)----------------------------------------------------------------
Misc fixes for 11.2
Quoted 6 lines
- SD (card, controller)
- VMWare VGA display
- Parallel NOR Flashes
- I8257 DMA controller
- IDE ATAPI layer
- Amiga One
Applied, thanks.
r~