Misc fixes for QEMU 2.8.0-rc1
The following changes since commit a7764f1548ef9946af30a8f96be9cef10761f0c1:
Fix FreeBSD (10.x) build after 7dc9ae43 (2016-11-22 10:56:01 +0000)
are available in the git repository at:
git://github.com/bonzini/qemu.git tags/for-upstream
for you to fetch changes up to 1d895feb3b9e4dd3560f505c309f26abf56c1e82:
scsi/esp: do not raise an interrupt when reading the FIFO register (2016-11-22 23:26:51 +0100)
----------------------------------------------------------------
Small fixes for rc1.
----------------------------------------------------------------
Bobby Bingham (1):
cpu_ldst.h: use correct guest address parameter
Eric Blake (1):
nbd: Allow unmap and fua during write zeroes
Hervé Poussineau (1):
scsi/esp: do not raise an interrupt when reading the FIFO register
block/nbd-client.c | 4 ++++ hw/scsi/esp.c | 2 -- include/exec/cpu_ldst.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-)
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 1/3] cpu_ldst.h: use correct guest address parameter
From: Bobby Bingham <[email protected]>
In the user emulation code path, tlb_vaddr_to_host erronesously passed vaddr as the guest address to be translated, instead of addr, the parameter which actually contained the guest address.
This resulted in incorrect addresses being used when emulating block copy (mvc/mvpg) and block clear (xc) instructions for the s390x target.
Message-Id: <[email protected]>
--- include/exec/cpu_ldst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/exec/cpu_ldst.h +1 -1
@@ -401,7 +401,7 @@ static inline void *tlb_vaddr_to_host(CPUArchState *env, target_ulong addr, int access_type, int mmu_idx) {#if defined(CONFIG_USER_ONLY ) -return g2h (vaddr); +return g2h (addr);#else int index = (addr >>TARGET_PAGE_BITS ) & (CPU_TLB_SIZE -1 );CPUTLBEntry *tlbentry = &env->tlb_table[mmu_idx][index];
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 2/3] nbd: Allow unmap and fua during write zeroes
In reply to Paolo BonziniFrom: Eric Blake <[email protected]>
Commit fa778fff wired up support to send the NBD_CMD_WRITE_ZEROES, but forgot to inform the block layer that FUA unmapping of zeroes is supported. Without BDRV_REQ_MAY_UNMAP listed as a supported flag, the block layer will always insist on the NBD layer passing NBD_CMD_FLAG_NO_HOLE, resulting in the server always allocating things even when it was desired to let the server punch holes. Similarly, failing to set BDRV_REQ_FUA means that the client may send unnecessary NBD_CMD_FLUSH when it could have instead used the NBD_CMD_FLAG_FUA bit.
Message-Id: <[email protected]>
--- block/nbd-client.c | 4 ++++ 1 file changed, 4 insertions(+)
block/nbd-client.c +4 -0
@@ -415,6 +415,10 @@ int nbd_client_init(BlockDriverState *bs, }if (client->nbdflags &NBD_FLAG_SEND_FUA ) { bs->supported_write_flags =BDRV_REQ_FUA ; + bs->supported_zero_flags |=BDRV_REQ_FUA ; + } +if (client->nbdflags &NBD_FLAG_SEND_WRITE_ZEROES ) { + bs->supported_zero_flags |=BDRV_REQ_MAY_UNMAP ; }qemu_co_mutex_init (&client->send_mutex);
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 3/3] scsi/esp: do not raise an interrupt when reading the FIFO register
In reply to Paolo BonziniFrom: Hervé Poussineau <[email protected]>
This fixes SCSI adapter self-tests done in MIPS Jazz emulation, broken since ff589551c8e8e9e95e211b9d8daafb4ed39f1aec.
Message-Id: <[email protected]>
--- hw/scsi/esp.c | 2 -- 1 file changed, 2 deletions(-)
hw/scsi/esp.c +0 -2
@@ -406,11 +406,9 @@ uint64_t esp_reg_read(ESPState *s, uint32_t saddr)/* Data out. */ qemu_log_mask (LOG_UNIMP ,"esp: PIO data read not implemented\n" ); s->rregs[ESP_FIFO ] =0 ; -esp_raise_irq (s); }else if (s->ti_rptr < s->ti_wptr) { s->ti_size--; s->rregs[ESP_FIFO ] = s->ti_buf[s->ti_rptr++]; -esp_raise_irq (s); }if (s->ti_rptr == s->ti_wptr) { s->ti_rptr =0 ;
Signature · 1 line
1.8.3.1
Stefan Hajnoczi
AppliedQuoted 22 lines · Paolo Bonzini
The following changes since commit
a7764f1548ef9946af30a8f96be9cef10761f0c1:Fix FreeBSD (10.x) build after
7dc9ae43(2016-11-22 10:56:01 +0000)are available in the git repository at:
git://github.com/bonzini/qemu.gittags/for-upstreamfor you to fetch changes up to
1d895feb3b9e4dd3560f505c309f26abf56c1e82:scsi/esp: do not raise an interrupt when reading the FIFO register (2016-11-22 23:26:51 +0100)
----------------------------------------------------------------
Small fixes for rc1.----------------------------------------------------------------
Bobby Bingham (1):
cpu_ldst.h: use correct guest address parameterEric Blake (1):
nbd: Allow unmap and fua during write zeroes
Quoted 11 lines
Hervé Poussineau (1):
scsi/esp: do not raise an interrupt when reading the FIFO registerblock/nbd-client.c | 4 ++++ hw/scsi/esp.c | 2 -- include/exec/cpu_ldst.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-)Signature · 1 line
1.8.3.1
Thanks, applied to my staging tree:
https://github.com/stefanha/qemu/commits/staging
Stefan