Miscellaneous bugfixes for 2.4.0-rc3
The following changes since commit dc94bd9166af5236a56bd5bb06845911915a925c:
Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2015-07-22 12:52:34 +0100)
are available in the git repository at:
git://github.com/bonzini/qemu.git tags/for-upstream
for you to fetch changes up to 56496b77d7f9f5600caff6e5437a44b489e48c6f:
target-i386/FPU: a misprint in helper_fistll_ST0 (2015-07-24 11:43:19 +0200)
----------------------------------------------------------------
* qemu-char fixes
* SCSI fixes (including CVE-2015-5158)
* RCU fixes
* Framebuffer logic to set DIRTY_MEMORY_VGA
* crypto unit test improvements
* Fix compiler warning for --disable-vnc
* qemu-doc fixes
* x86 TCG pasto fix
----------------------------------------------------------------
Daniel P. Berrange (1):
crypto: extend unit tests to cover decryption too
Dmitry Poletaev (1):
target-i386/FPU: a misprint in helper_fistll_ST0
Gonglei (2):
vnc: fix memory leak
qemu-doc: fix typos
Matthew Rosato (1):
scsi: Handle no media case for scsi_get_configuration
Nils Carlson (1):
qemu-char: Fix missed data on unix socket
Paolo Bonzini (5):
qemu-char: handle EINTR for TCP character devices
scsi: fix buffer overflow in scsi_req_parse_cdb (CVE-2015-5158)
rcu: actually register threads that have RCU read-side critical sections
memory: count number of active VGA logging clients
framebuffer: set DIRTY_MEMORY_VGA on RAM that is used for the framebuffer
Peter Maydell (1):
exec.c: Use atomic_rcu_read() to access dispatch in memory_region_section_get_iotlb()
Stefan Weil (1):
vl: Fix compiler warning for builds without VNC
cpus.c | 6 ++++ exec.c | 5 ++- hw/display/framebuffer.c | 75 ++++++++++++++++++++++++-------------------- hw/display/framebuffer.h | 44 ++++++++++++++++++++++++-- hw/display/milkymist-vgafb.c | 15 +++++++-- hw/display/omap_lcdc.c | 12 +++++-- hw/display/pl110.c | 13 ++++++-- hw/display/pxa2xx_lcd.c | 29 ++++++++++++----- hw/scsi/scsi-bus.c | 7 ++++- hw/scsi/scsi-disk.c | 16 +++++++++- include/exec/memory.h | 1 + iothread.c | 5 +++ memory.c | 7 +++++ migration/migration.c | 4 +++ qemu-char.c | 26 +++++++++------ qemu-doc.texi | 2 +- qemu-options.hx | 2 +- qemu-tech.texi | 2 +- target-i386/fpu_helper.c | 2 +- tests/test-crypto-cipher.c | 28 ++++++++++++----- tests/test-rcu-list.c | 4 +++ ui/vnc.c | 5 ++- util/rcu.c | 2 ++ vl.c | 2 +- 24 files changed, 236 insertions(+), 78 deletions(-)
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 01/13] exec.c: Use atomic_rcu_read() to access dispatch in memory_region_section_get_iotlb()
From: Peter Maydell <[email protected]>
When accessing the dispatch pointer in an AddressSpace within an RCU critical section we should always use atomic_rcu_read(). Fix an access within memory_region_section_get_iotlb() which was incorrectly doing a direct pointer access.
Message-Id: <[email protected]>
--- exec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
exec.c +4 -1
@@ -954,7 +954,10 @@ hwaddr memory_region_section_get_iotlb(CPUState *cpu, iotlb |=PHYS_SECTION_ROM ; } }else { - iotlb = section - section->address_space->dispatch->map.sections; +AddressSpaceDispatch *d; + + d =atomic_rcu_read (§ion->address_space->dispatch); + iotlb = section - d->map.sections; iotlb += xlat; }
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 03/13] qemu-char: Fix missed data on unix socket
In reply to Paolo BonziniFrom: Nils Carlson <[email protected]>
Commit 812c1057 introduced HUP detection on unix and tcp sockets prior to a read in tcp_chr_read. This unfortunately broke CloudStack 4.2 which relied on the old behaviour where data on a socket was readable even if a HUP was present.
A working solution is to properly check the return values from recv, handling a closed socket once there is no more data to read.
Also enable polling for G_IO_NVAL to ensure the callback is called for all possible events as these should now be possible to handle with the improved error detection.
Message-Id: <[email protected]>
--- qemu-char.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
qemu-char.c +5 -8
@@ -807,7 +807,8 @@ static gboolean io_watch_poll_prepare(GSource *source, gint *timeout_) }if (now_active) { - iwp->src =g_io_create_watch (iwp->channel,G_IO_IN |G_IO_ERR |G_IO_HUP ); + iwp->src =g_io_create_watch (iwp->channel, +G_IO_IN |G_IO_ERR |G_IO_HUP |G_IO_NVAL );g_source_set_callback (iwp->src, iwp->fd_read, iwp->opaque,NULL );g_source_attach (iwp->src,NULL ); }else {
@@ -2856,12 +2857,6 @@ static gboolean tcp_chr_read(GIOChannel *chan, GIOCondition cond, void *opaque)uint8_t buf[READ_BUF_LEN ];int len, size; -if (cond &G_IO_HUP ) { -/* connection closed */ -tcp_chr_disconnect (chr); -return TRUE; - } -if (!s->connected || s->max_size <=0 ) {return TRUE; }
@@ -2869,7 +2864,9 @@ static gboolean tcp_chr_read(GIOChannel *chan, GIOCondition cond, void *opaque)if (len > s->max_size) len = s->max_size; size =tcp_chr_recv (chr, (void *)buf, len); -if (size ==0 ) { +if (size ==0 || + (size <0 && +socket_error () !=EAGAIN &&socket_error () !=EWOULDBLOCK )) {/* connection closed */ tcp_chr_disconnect (chr); }else if (size >0 ) {
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 02/13] qemu-char: handle EINTR for TCP character devices
In reply to Paolo Bonzini--- qemu-char.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
qemu-char.c +11 -2
@@ -2797,7 +2797,10 @@ static ssize_t tcp_chr_recv(CharDriverState *chr, char *buf, size_t len)#ifdef MSG_CMSG_CLOEXEC flags |=MSG_CMSG_CLOEXEC ;#endif - ret =recvmsg (s->fd, &msg, flags); +do { + ret =recvmsg (s->fd, &msg, flags); + }while (ret ==-1 && errno ==EINTR ); +if (ret >0 && s->is_unix) {unix_process_msgfd (chr, &msg); }
@@ -2808,7 +2811,13 @@ static ssize_t tcp_chr_recv(CharDriverState *chr, char *buf, size_t len)static ssize_t tcp_chr_recv (CharDriverState *chr,char *buf,size_t len) {TCPCharDriver *s = chr->opaque; -return qemu_recv (s->fd, buf, len,0 ); +ssize_t ret; + +do { + ret =qemu_recv (s->fd, buf, len,0 ); + }while (ret ==-1 &&socket_error () ==EINTR ); + +return ret; }#endif
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 04/13] crypto: extend unit tests to cover decryption too
In reply to Paolo BonziniFrom: "Daniel P. Berrange" <[email protected]>
The current unit test only verifies the encryption API, resulting in us missing a recently introduced bug in the decryption API from commit d3462e3. It was fortunately later discovered & fixed by commit bd09594, thanks to the QEMU I/O tests for qcow2 encryption, but we should really detect this directly in the crypto unit tests. Also remove an accidental debug message and simplify some asserts.
Message-Id: <[email protected]>
--- tests/test-crypto-cipher.c | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-)
tests/test-crypto-cipher.c +20 -8
@@ -226,12 +226,10 @@ static void test_cipher(const void *opaque)const QCryptoCipherTestData *data = opaque;QCryptoCipher *cipher; -Error *err =NULL ;uint8_t *key, *iv, *ciphertext, *plaintext, *outtext;size_t nkey, niv, nciphertext, nplaintext;char *outtexthex; -g_test_message ("foo" ); nkey =unhex_string (data->key, &key); niv =unhex_string (data->iv, &iv); nciphertext =unhex_string (data->ciphertext, &ciphertext);
@@ -244,28 +242,42 @@ static void test_cipher(const void *opaque) cipher =qcrypto_cipher_new ( data->alg, data->mode, key, nkey, - &err); + &error_abort);g_assert (cipher !=NULL ); -g_assert (err ==NULL );if (iv) {g_assert (qcrypto_cipher_setiv (cipher, iv, niv, - &err) ==0 ); -g_assert (err ==NULL ); + &error_abort) ==0 ); }g_assert (qcrypto_cipher_encrypt (cipher, plaintext, outtext, nplaintext, - &err) ==0 ); -g_assert (err ==NULL ); + &error_abort) ==0 ); outtexthex =hex_string (outtext, nciphertext); g_assert_cmpstr(outtexthex, ==, data->ciphertext); +g_free (outtexthex); + +if (iv) { +g_assert (qcrypto_cipher_setiv (cipher, + iv, niv, + &error_abort) ==0 ); + } +g_assert (qcrypto_cipher_decrypt (cipher, + ciphertext, + outtext, + nplaintext, + &error_abort) ==0 ); + + outtexthex =hex_string (outtext, nplaintext); + + g_assert_cmpstr(outtexthex, ==, data->plaintext); +g_free (outtext);g_free (outtexthex);g_free (key);
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 05/13] vnc: fix memory leak
In reply to Paolo BonziniFrom: Gonglei <[email protected]>
If vnc's password is configured, it will leak memory which cipher variable pointed on every vnc connection.
Message-Id: <[email protected]>
--- ui/vnc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
ui/vnc.c +4 -1
@@ -2520,7 +2520,7 @@ static int protocol_client_auth_vnc(VncState *vs, uint8_t *data, size_t len)size_t i, pwlen;unsigned char key[8 ];time_t now =time (NULL ); -QCryptoCipher *cipher; +QCryptoCipher *cipher =NULL ;Error *err =NULL ;if (!vs->vd->password) {
@@ -2573,6 +2573,8 @@ static int protocol_client_auth_vnc(VncState *vs, uint8_t *data, size_t len)start_client_init (vs); } + +qcrypto_cipher_free (cipher);return 0 ; reject:
@@ -2584,6 +2586,7 @@ reject: }vnc_flush (vs);vnc_client_error (vs); +qcrypto_cipher_free (cipher);return 0 ; }
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 07/13] rcu: actually register threads that have RCU read-side critical sections
In reply to Paolo BonziniOtherwise, grace periods are detected too early!
--- cpus.c | 6 ++++++ iothread.c | 5 +++++ migration/migration.c | 4 ++++ tests/test-rcu-list.c | 4 ++++ util/rcu.c | 2 ++ 5 files changed, 21 insertions(+)
cpus.c +6 -0
@@ -954,6 +954,8 @@ static void *qemu_kvm_cpu_thread_fn(void *arg)CPUState *cpu = arg;int r; +rcu_register_thread (); +qemu_mutex_lock_iothread ();qemu_thread_get_self (cpu->thread); cpu->thread_id =qemu_get_thread_id ();
@@ -995,6 +997,8 @@ static void *qemu_dummy_cpu_thread_fn(void *arg)sigset_t waitset;int r; +rcu_register_thread (); +qemu_mutex_lock_iothread ();qemu_thread_get_self (cpu->thread); cpu->thread_id =qemu_get_thread_id ();
@@ -1034,6 +1038,8 @@ static void *qemu_tcg_cpu_thread_fn(void *arg) {CPUState *cpu = arg; +rcu_register_thread (); +qemu_mutex_lock_iothread ();qemu_tcg_init_cpu_signals ();qemu_thread_get_self (cpu->thread);
iothread.c +5 -0
@@ -18,6 +18,7 @@#include "sysemu/iothread.h" #include "qmp-commands.h" #include "qemu/error-report.h" +#include "qemu/rcu.h" typedef ObjectClass IOThreadClass ;
@@ -31,6 +32,8 @@ static void *iothread_run(void *opaque)IOThread *iothread = opaque;bool blocking; +rcu_register_thread (); +qemu_mutex_lock (&iothread->init_done_lock); iothread->thread_id =qemu_get_thread_id ();qemu_cond_signal (&iothread->init_done_cond);
@@ -45,6 +48,8 @@ static void *iothread_run(void *opaque) }aio_context_release (iothread->ctx); } + +rcu_unregister_thread ();return NULL ; }
migration/migration.c +4 -0
@@ -22,6 +22,7 @@#include "block/block.h" #include "qapi/qmp/qerror.h" #include "qemu/sockets.h" +#include "qemu/rcu.h" #include "migration/block.h" #include "qemu/thread.h" #include "qmp-commands.h"
@@ -917,6 +918,8 @@ static void *migration_thread(void *opaque)int64_t start_time = initial_time;bool old_vm_running = false; +rcu_register_thread (); +qemu_savevm_state_header (s->file);qemu_savevm_state_begin (s->file, &s->params);
@@ -1016,6 +1019,7 @@ static void *migration_thread(void *opaque)qemu_bh_schedule (s->cleanup_bh);qemu_mutex_unlock_iothread (); +rcu_unregister_thread ();return NULL ; }
tests/test-rcu-list.c +4 -0
@@ -108,6 +108,8 @@ static void *rcu_q_reader(void *arg)long long n_reads_local =0 ;struct list_element *el; +rcu_register_thread (); + *(struct rcu_reader_data **)arg = &rcu_reader;atomic_inc (&nthreadsrunning);while (goflag ==GOFLAG_INIT ) {
@@ -129,6 +131,8 @@ static void *rcu_q_reader(void *arg)qemu_mutex_lock (&counts_mutex); n_reads += n_reads_local;qemu_mutex_unlock (&counts_mutex); + +rcu_unregister_thread ();return NULL ; }
util/rcu.c +2 -0
@@ -216,6 +216,8 @@ static void *call_rcu_thread(void *opaque) {struct rcu_head *node; +rcu_register_thread (); +for (;;) {int tries =0 ;int n =atomic_read (&rcu_call_count);
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 08/13] scsi: Handle no media case for scsi_get_configuration
In reply to Paolo BonziniFrom: Matthew Rosato <[email protected]>
Currently, scsi_get_configuration always returns a current profile (DVD or CD), even when there is actually no media present. By comparison, ide/atapi uses a default profile of 0 (MMC_PROFILE_NONE) for this case and checks for tray_open, so let's do the same for scsi.
This fixes a problem I'm seeing with Fedora 22 guests where systemd cdrom_id fails to unmount after a QEMU-initiated eject against a scsi cdrom device because it believes the media is still present (but unreadable).
Message-Id: <[email protected]>
--- hw/scsi/scsi-disk.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
hw/scsi/scsi-disk.c +15 -1
@@ -765,6 +765,9 @@ static inline bool media_is_dvd(SCSIDiskState *s)if (!blk_is_inserted (s->qdev.conf.blk)) {return false; } +if (s->tray_open) { +return false; + }blk_get_geometry (s->qdev.conf.blk, &nb_sectors);return nb_sectors >CD_MAX_SECTORS ; }
@@ -778,6 +781,9 @@ static inline bool media_is_cd(SCSIDiskState *s)if (!blk_is_inserted (s->qdev.conf.blk)) {return false; } +if (s->tray_open) { +return false; + }blk_get_geometry (s->qdev.conf.blk, &nb_sectors);return nb_sectors <=CD_MAX_SECTORS ; }
@@ -975,7 +981,15 @@ static int scsi_get_configuration(SCSIDiskState *s, uint8_t *outbuf)if (s->qdev.type !=TYPE_ROM ) {return -1 ; } - current =media_is_dvd (s) ?MMC_PROFILE_DVD_ROM :MMC_PROFILE_CD_ROM ; + +if (media_is_dvd (s)) { + current =MMC_PROFILE_DVD_ROM ; + }else if (media_is_cd (s)) { + current =MMC_PROFILE_CD_ROM ; + }else { + current =MMC_PROFILE_NONE ; + } +memset (outbuf,0 ,40 );stl_be_p (&outbuf[0 ],36 );/* Bytes after the data length field */ stw_be_p (&outbuf[6 ], current);
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 06/13] scsi: fix buffer overflow in scsi_req_parse_cdb (CVE-2015-5158)
In reply to Paolo BonziniThis is a guest-triggerable buffer overflow present in QEMU 2.2.0 and newer. scsi_cdb_length returns -1 as an error value, but the caller does not check it.
Luckily, the massive overflow means that QEMU will just SIGSEGV, making the impact much smaller.
--- hw/scsi/scsi-bus.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
hw/scsi/scsi-bus.c +6 -1
@@ -1239,10 +1239,15 @@ int scsi_cdb_length(uint8_t *buf) {int scsi_req_parse_cdb (SCSIDevice *dev,SCSICommand *cmd,uint8_t *buf) {int rc; +int len; cmd->lba =-1 ; - cmd->len =scsi_cdb_length (buf); + len =scsi_cdb_length (buf); +if (len <0 ) { +return -1 ; + } + cmd->len = len;switch (dev->type) {case TYPE_TAPE : rc =scsi_req_stream_xfer (cmd, dev, buf);
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 09/13] vl: Fix compiler warning for builds without VNC
In reply to Paolo BonziniFrom: Stefan Weil <[email protected]>
This regression was caused by commit 70b94331.
CC vl.ovl.c: In function ‘select_display’:
vl.c:2064:12: error: unused variable ‘err’ [-Werror=unused-variable]
Error *err = NULL;
^Message-Id: <[email protected]>
--- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
vl.c +1 -1
@@ -2061,7 +2061,6 @@ static void select_vgahw (const char *p)static DisplayType select_display (const char *p) { -Error *err =NULL ;const char *opts;DisplayType display =DT_DEFAULT ;
@@ -2130,6 +2129,7 @@ static DisplayType select_display(const char *p) }else if (strstart (p,"vnc" , &opts)) {#ifdef CONFIG_VNC if (*opts =='=' ) { +Error *err =NULL ;if (vnc_parse (opts +1 , &err) ==NULL ) {error_report_err (err);exit (1 );
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 10/13] memory: count number of active VGA logging clients
In reply to Paolo BonziniFor a board that has multiple framebuffer devices, both of them might want to use DIRTY_MEMORY_VGA on the same memory region. The lack of reference counting in memory_region_set_log makes this very awkward to implement.
--- include/exec/memory.h | 1 + memory.c | 7 +++++++ 2 files changed, 8 insertions(+)
include/exec/memory.h +1 -0
@@ -180,6 +180,7 @@ struct MemoryRegion {bool warning_printed;/* For reservations */ bool flush_coalesced_mmio;bool global_locking; +uint8_t vga_logging_count;MemoryRegion *alias;hwaddr alias_offset;int32_t priority;
memory.c +7 -0
@@ -1433,8 +1433,15 @@ void memory_region_notify_iommu(MemoryRegion *mr,void memory_region_set_log (MemoryRegion *mr,bool log,unsigned client) {uint8_t mask =1 << client; +uint8_t old_logging;assert (client ==DIRTY_MEMORY_VGA ); + old_logging = mr->vga_logging_count; + mr->vga_logging_count += log ?1 :-1 ; +if (!!old_logging == !!mr->vga_logging_count) { +return ; + } +memory_region_transaction_begin (); mr->dirty_log_mask = (mr->dirty_log_mask & ~mask) | (log * mask); memory_region_update_pending |= mr->enabled;
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 12/13] qemu-doc: fix typos
In reply to Paolo BonziniFrom: Gonglei <[email protected]>
Message-Id: <[email protected]>
--- qemu-doc.texi | 2 +- qemu-options.hx | 2 +- qemu-tech.texi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
qemu-doc.texi +1 -1
@@ -1061,7 +1061,7 @@ type is assumed. @var{server} specifies the server where the volume file specification for the given volume resides. This can be either hostname, ipv4 address or ipv6 address. ipv6 address needs to be within square brackets [ ]. -If transport type is unix, then @var{server} field should not be specifed. +If transport type is unix, then @var{server} field should not be specified. Instead @var{socket} field needs to be populated with the path to unix domain socket.
qemu-options.hx +1 -1
@@ -206,7 +206,7 @@ STEXI @item -boot [order=@var{drives}][,once=@var{drives}][,menu=on|off][,splash=@var{sp_name}][,splash-time=@var{sp_time}][,reboot-timeout=@var{rb_timeout}][,strict=on|off] @findex -boot Specify boot order @var{drives} as a string of drive letters. Valid -drive letters depend on the target achitecture. The x86 PC uses: a, b +drive letters depend on the target architecture. The x86 PC uses: a, b (floppy 1 and 2), c (first hard disk), d (first CD-ROM), n-p (Etherboot from network adapter 1-4), hard disk boot is the default. To apply a particular boot order only on the first startup, specify it via
qemu-tech.texi +1 -1
@@ -440,7 +440,7 @@ translator cannot deduce statically). @section Direct block chaining After each translated basic block is executed, QEMU uses the simulated -Program Counter (PC) and other cpu state informations (such as the CS +Program Counter (PC) and other cpu state information (such as the CS segment base value) to find the next basic block. In order to accelerate the most common cases where the new simulated PC
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 11/13] framebuffer: set DIRTY_MEMORY_VGA on RAM that is used for the framebuffer
In reply to Paolo BonziniThe MemoryRegionSection contains enough information to access the RAM region underlying the framebuffer, and can be cached inside the display device.
By doing this, the new framebuffer_update_memory_section function can enable dirty memory logging on the relevant RAM region. The function must be called whenever the stride or base of the framebuffer changes; a simple way to cover these cases is to call it on every full frame invalidation, which is a rare case.
framebuffer_update_display now works entirely on a MemoryRegionSection, without going through cpu_physical_memory_map/unmap.
--- hw/display/framebuffer.c | 75 ++++++++++++++++++++++++-------------------- hw/display/framebuffer.h | 44 ++++++++++++++++++++++++-- hw/display/milkymist-vgafb.c | 15 +++++++-- hw/display/omap_lcdc.c | 12 +++++-- hw/display/pl110.c | 13 ++++++-- hw/display/pxa2xx_lcd.c | 29 ++++++++++++----- 6 files changed, 137 insertions(+), 51 deletions(-)
hw/display/framebuffer.c +41 -34
@@ -21,12 +21,40 @@#include "ui/console.h" #include "framebuffer.h" +void framebuffer_update_memory_section ( +MemoryRegionSection *mem_section, +MemoryRegion *root, +hwaddr base, +unsigned rows, +unsigned src_width) +{ +hwaddr src_len = (hwaddr )rows * src_width; + +if (mem_section->mr) { +memory_region_set_log (mem_section->mr, false,DIRTY_MEMORY_VGA ); +memory_region_unref (mem_section->mr); + mem_section->mr =NULL ; + } + + *mem_section =memory_region_find (root, base, src_len); +if (!mem_section->mr) { +return ; + } + +if (int128_get64 (mem_section->size) < src_len || + !memory_region_is_ram (mem_section->mr)) { +memory_region_unref (mem_section->mr); + mem_section->mr =NULL ; +return ; + } + +memory_region_set_log (mem_section->mr, true,DIRTY_MEMORY_VGA ); +} +/* Render an image from a shared memory framebuffer. */ - void framebuffer_update_display( DisplaySurface *ds, - MemoryRegion *address_space, - hwaddr base, + MemoryRegionSection *mem_section, int cols, /* Width in pixels. */ int rows, /* Height in pixels. */ int src_width, /* Length of source line, in bytes. */
@@ -41,51 +69,33 @@ void framebuffer_update_display(hwaddr src_len;uint8_t *dest;uint8_t *src; -uint8_t *src_base;int first, last =0 ;int dirty;int i;ram_addr_t addr; -MemoryRegionSection mem_section;MemoryRegion *mem; i = *first_row; *first_row =-1 ; src_len = src_width * rows; - mem_section =memory_region_find (address_space, base, src_len); - mem = mem_section.mr; -if (int128_get64 (mem_section.size) != src_len || - !memory_region_is_ram (mem_section.mr)) { - goto out; + mem = mem_section->mr; +if (!mem) { +return ; } -assert (mem); -assert (mem_section.offset_within_address_space == base); -memory_region_sync_dirty_bitmap (mem); -if (!memory_region_is_logging (mem,DIRTY_MEMORY_VGA )) { - invalidate = true; - } - src_base =cpu_physical_memory_map (base, &src_len,0 ); -/* If we can't map the framebuffer then bail. We could try harder, -but it's not really worth it as dirty flag tracking will probably -already have failed above. */ -if (!src_base) - goto out; -if (src_len != src_width * rows) { -cpu_physical_memory_unmap (src_base, src_len,0 ,0 ); - goto out; - } - src = src_base; + addr = mem_section->offset_within_region; + src =memory_region_get_ram_ptr (mem) + addr; + dest =surface_data (ds); -if (dest_col_pitch <0 ) +if (dest_col_pitch <0 ) { dest -= dest_col_pitch * (cols -1 ); + }if (dest_row_pitch <0 ) { dest -= dest_row_pitch * (rows -1 ); } first =-1 ; - addr = mem_section.offset_within_region; addr += i * src_width; src += i * src_width;
@@ -104,14 +114,11 @@ void framebuffer_update_display( src += src_width; dest += dest_row_pitch; } -cpu_physical_memory_unmap (src_base, src_len,0 ,0 );if (first <0 ) { - goto out; +return ; } -memory_region_reset_dirty (mem, mem_section.offset_within_region, src_len, +memory_region_reset_dirty (mem, mem_section->offset_within_region, src_len,DIRTY_MEMORY_VGA ); *first_row = first; *last_row = last; -out: -memory_region_unref (mem); }
hw/display/framebuffer.h +42 -2
52 lines not on this page · raw message
hw/display/milkymist-vgafb.c +12 -3
@@ -71,6 +71,7 @@ struct MilkymistVgafbState {SysBusDevice parent_obj;MemoryRegion regs_region; +MemoryRegionSection fbsection;QemuConsole *con;int invalidate;
@@ -91,6 +92,7 @@ static void vgafb_update_display(void *opaque)MilkymistVgafbState *s = opaque;SysBusDevice *sbd;DisplaySurface *surface =qemu_console_surface (s->con); +int src_width;int first =0 ;int last =0 ;drawfn fn;
@@ -129,11 +131,18 @@ static void vgafb_update_display(void *opaque)break ; } - framebuffer_update_display(surface, sysbus_address_space(sbd), - s->regs[R_BASEADDRESS] + s->fb_offset, + src_width = s->regs[R_HRES ] *2 ; +if (s->invalidate) { +framebuffer_update_memory_section (&s->fbsection, +sysbus_address_space (sbd), + s->regs[R_BASEADDRESS ] + s->fb_offset, + s->regs[R_VRES ], src_width); + } + + framebuffer_update_display(surface, &s->fbsection, s->regs[R_HRES], s->regs[R_VRES], - s->regs[R_HRES] * 2, + src_width, dest_width, 0, s->invalidate,
hw/display/omap_lcdc.c +10 -2
@@ -25,6 +25,7 @@struct omap_lcd_panel_s {MemoryRegion *sysmem;MemoryRegion iomem; +MemoryRegionSection fbsection;qemu_irq irq;QemuConsole *con;
@@ -215,12 +216,19 @@ static void omap_update_display(void *opaque) step = width * bpp >>3 ; linesize =surface_stride (surface); -framebuffer_update_display (surface, omap_lcd->sysmem, - frame_base, width, height, +if (omap_lcd->invalidate) { +framebuffer_update_memory_section (&omap_lcd->fbsection, + omap_lcd->sysmem, frame_base, + height, step); + } + +framebuffer_update_display (surface, &omap_lcd->fbsection, + width, height, step, linesize,0 , omap_lcd->invalidate, draw_line, omap_lcd->palette, &first, &last); +if (first >=0 ) {dpy_gfx_update (omap_lcd->con,0 , first, width, last - first +1 ); }
hw/display/pl110.c +11 -2
@@ -46,6 +46,7 @@ typedef struct PL110State {SysBusDevice parent_obj;MemoryRegion iomem; +MemoryRegionSection fbsection;QemuConsole *con;int version;
@@ -238,12 +239,20 @@ static void pl110_update_display(void *opaque) } dest_width *= s->cols; first =0 ; -framebuffer_update_display (surface,sysbus_address_space (sbd), - s->upbase, s->cols, s->rows, +if (s->invalidate) { +framebuffer_update_memory_section (&s->fbsection, +sysbus_address_space (sbd), + s->upbase, + s->rows, src_width); + } + +framebuffer_update_display (surface, &s->fbsection, + s->cols, s->rows, src_width, dest_width,0 , s->invalidate, fn, s->palette, &first, &last); +if (first >=0 ) {dpy_gfx_update (s->con,0 , first, s->cols, last - first +1 ); }
hw/display/pxa2xx_lcd.c +21 -8
@@ -35,6 +35,7 @@ struct DMAChannel {struct PXA2xxLCDState {MemoryRegion *sysmem;MemoryRegion iomem; +MemoryRegionSection fbsection;qemu_irq irq;int irqlevel;
@@ -687,8 +688,11 @@ static void pxa2xx_lcdc_dma0_redraw_rot0(PXA2xxLCDState *s, dest_width = s->xres * s->dest_width; *miny =0 ; -framebuffer_update_display (surface, s->sysmem, - addr, s->xres, s->yres, +if (s->invalidated) { +framebuffer_update_memory_section (&s->fbsection, s->sysmem, + addr, s->yres, src_width); + } +framebuffer_update_display (surface, &s->fbsection, s->xres, s->yres, src_width, dest_width, s->dest_width, s->invalidated, fn, s->dma_ch[0 ].palette, miny, maxy);
@@ -715,8 +719,11 @@ static void pxa2xx_lcdc_dma0_redraw_rot90(PXA2xxLCDState *s, dest_width = s->yres * s->dest_width; *miny =0 ; - framebuffer_update_display(surface, s->sysmem, - addr, s->xres, s->yres, +if (s->invalidated) { +framebuffer_update_memory_section (&s->fbsection, s->sysmem, + addr, s->yres, src_width); + } + framebuffer_update_display(surface, &s->fbsection, s->xres, s->yres, src_width, s->dest_width, -dest_width, s->invalidated, fn, s->dma_ch[0].palette,
@@ -747,8 +754,11 @@ static void pxa2xx_lcdc_dma0_redraw_rot180(PXA2xxLCDState *s, dest_width = s->xres * s->dest_width; *miny =0 ; -framebuffer_update_display (surface, s->sysmem, - addr, s->xres, s->yres, +if (s->invalidated) { +framebuffer_update_memory_section (&s->fbsection, s->sysmem, + addr, s->yres, src_width); + } +framebuffer_update_display (surface, &s->fbsection, s->xres, s->yres, src_width, -dest_width, -s->dest_width, s->invalidated, fn, s->dma_ch[0 ].palette, miny, maxy);
@@ -778,8 +788,11 @@ static void pxa2xx_lcdc_dma0_redraw_rot270(PXA2xxLCDState *s, dest_width = s->yres * s->dest_width; *miny =0 ; - framebuffer_update_display(surface, s->sysmem, - addr, s->xres, s->yres, +if (s->invalidated) { +framebuffer_update_memory_section (&s->fbsection, s->sysmem, + addr, s->yres, src_width); + } + framebuffer_update_display(surface, &s->fbsection, s->xres, s->yres, src_width, -s->dest_width, dest_width, s->invalidated, fn, s->dma_ch[0].palette,
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 13/13] target-i386/FPU: a misprint in helper_fistll_ST0
In reply to Paolo BonziniFrom: Dmitry Poletaev <[email protected]>
There is a cut-and-paste mistake in the patch
https://lists.gnu.org/archive/html/qemu-devel/2014-11/msg01657.html . It cause errors in guest work. Here is the bugfix.
Message-Id: <[email protected]>
--- target-i386/fpu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target-i386/fpu_helper.c +1 -1
@@ -272,7 +272,7 @@ int64_t helper_fistll_ST0(CPUX86State *env) old_exp_flags =get_float_exception_flags (&env->fp_status);set_float_exception_flags (0 , &env->fp_status); - val =floatx80_to_int32 (ST0 , &env->fp_status); + val =floatx80_to_int64 (ST0 , &env->fp_status);if (get_float_exception_flags (&env->fp_status) & float_flag_invalid) { val =0x8000000000000000ULL ; }
Signature · 1 line
2.4.3
Quoted 12 lines · Paolo Bonzini
The following changes since commit
dc94bd9166af5236a56bd5bb06845911915a925c:Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2015-07-22 12:52:34 +0100)
are available in the git repository at:
git://github.com/bonzini/qemu.gittags/for-upstreamfor you to fetch changes up to
56496b77d7f9f5600caff6e5437a44b489e48c6f:target-i386/FPU: a misprint in
helper_fistll_ST0(2015-07-24 11:43:19 +0200)
Quoted 9 lines
----------------------------------------------------------------
* qemu-char fixes
* SCSI fixes (including CVE-2015-5158)
* RCU fixes
* Framebuffer logic to setDIRTY_MEMORY_VGA
* crypto unit test improvements
* Fix compiler warning for --disable-vnc
* qemu-doc fixes
* x86 TCG pasto fix
Unfortunately this fails 'make check' on OSX and Linux at least:
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$((RANDOM % 255 + 1))} gtester -k
--verbose -m=quick tests/test-crypto-cipher
TEST: tests/test-crypto-cipher... (pid=94271)
/crypto/cipher/aes-ecb-128: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("802829a0f449928641b526a6442d2ecf8f703bdab74810779df19f78ecae4ea9a832ac2abbb3a176ebf4126be9e3d30b32fbac2152e22bd251e11302a368b610" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S93f4ba2e4a29fe76a576f8be6fc19678
(pid=94272)
/crypto/cipher/aes-ecb-192: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("37c547419be0dbb63682f5c0f199361d80c2b4be91bac925d416dd735fe9c40356833e4a660f94658ebd2b857515e1f9cf4bb9727f64105cfaa6185743eb54c2" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S9fa2f1bd7fd79de10ee302a8f59ce9b9
(pid=94275)
/crypto/cipher/aes-ecb-256: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("b7ad7fa1b13a51d8ee2bd0c1329d575c6a73594b0387c40e078d445e0b8897c2f1ccaf178a0fc46e01d79809d758d144b0dc02874c1abcfad153575e8de48eae" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S1b0f9159aaa37c711bedfd80192ca4f5
(pid=94276)
/crypto/cipher/aes-cbc-128: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("46e335b8ea11bcc5b4eb7f49d114ff43282215ad3acff16be19b6f711aa13b8969fd9fb7982a3703e816143f8962560fda85ad94d34e54182a525c2b28fa0eab" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S47c21805c19462cf111f4c9a790663ba
(pid=94277)
/crypto/cipher/aes-cbc-192: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("80d40e64bd09da15f62c5d2dca6b21e3f35430b68fc5decd37d4c3fade1c5447e435ab7965e648fb53c7c802c9576fdcf49923a267c19498d8a6a53ee6d49643" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02Sae1928fd64a524afb86c99c0f0ef89b6
(pid=94280)
/crypto/cipher/aes-cbc-256: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("ce054cfa6ec264de70202e906bd57065101da549b984ee26af6e06ef80fe30b3493431a21454391ac11a1ff5dc0414b607d932eaec0446521c3ebb52b7d38f4c" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02Sf28d8a242b89a287745d6b8ea3a431d7
(pid=94281)
/crypto/cipher/des-rfb-ecb-56: OK
FAIL: tests/test-crypto-cipher
-- PMM
Quoted 60 lines · Peter Maydell
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$((RANDOM % 255 + 1))} gtester -k
--verbose -m=quick tests/test-crypto-cipher
TEST: tests/test-crypto-cipher... (pid=94271)
/crypto/cipher/aes-ecb-128: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("802829a0f449928641b526a6442d2ecf8f703bdab74810779df19f78ecae4ea9a832ac2abbb3a176ebf4126be9e3d30b32fbac2152e22bd251e11302a368b610" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S93f4ba2e4a29fe76a576f8be6fc19678
(pid=94272)
/crypto/cipher/aes-ecb-192: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("37c547419be0dbb63682f5c0f199361d80c2b4be91bac925d416dd735fe9c40356833e4a660f94658ebd2b857515e1f9cf4bb9727f64105cfaa6185743eb54c2" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S9fa2f1bd7fd79de10ee302a8f59ce9b9
(pid=94275)
/crypto/cipher/aes-ecb-256: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("b7ad7fa1b13a51d8ee2bd0c1329d575c6a73594b0387c40e078d445e0b8897c2f1ccaf178a0fc46e01d79809d758d144b0dc02874c1abcfad153575e8de48eae" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S1b0f9159aaa37c711bedfd80192ca4f5
(pid=94276)
/crypto/cipher/aes-cbc-128: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("46e335b8ea11bcc5b4eb7f49d114ff43282215ad3acff16be19b6f711aa13b8969fd9fb7982a3703e816143f8962560fda85ad94d34e54182a525c2b28fa0eab" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S47c21805c19462cf111f4c9a790663ba
(pid=94277)
/crypto/cipher/aes-cbc-192: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("80d40e64bd09da15f62c5d2dca6b21e3f35430b68fc5decd37d4c3fade1c5447e435ab7965e648fb53c7c802c9576fdcf49923a267c19498d8a6a53ee6d49643" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02Sae1928fd64a524afb86c99c0f0ef89b6
(pid=94280)
/crypto/cipher/aes-cbc-256: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("ce054cfa6ec264de70202e906bd57065101da549b984ee26af6e06ef80fe30b3493431a21454391ac11a1ff5dc0414b607d932eaec0446521c3ebb52b7d38f4c" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02Sf28d8a242b89a287745d6b8ea3a431d7
(pid=94281)
/crypto/cipher/des-rfb-ecb-56: OK
FAIL: tests/test-crypto-cipher
Quoted 2 lines
-- PMM
I'll respin without this patch. I can reproduce it with --disable-gnutls. Dan, can you take a look?
Paolo
Quoted 63 lines · Paolo Bonzini
Quoted 60 lines · Peter Maydell
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$((RANDOM % 255 + 1))} gtester -k
--verbose -m=quick tests/test-crypto-cipher
TEST: tests/test-crypto-cipher... (pid=94271)
/crypto/cipher/aes-ecb-128: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("802829a0f449928641b526a6442d2ecf8f703bdab74810779df19f78ecae4ea9a832ac2abbb3a176ebf4126be9e3d30b32fbac2152e22bd251e11302a368b610" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S93f4ba2e4a29fe76a576f8be6fc19678
(pid=94272)
/crypto/cipher/aes-ecb-192: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("37c547419be0dbb63682f5c0f199361d80c2b4be91bac925d416dd735fe9c40356833e4a660f94658ebd2b857515e1f9cf4bb9727f64105cfaa6185743eb54c2" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S9fa2f1bd7fd79de10ee302a8f59ce9b9
(pid=94275)
/crypto/cipher/aes-ecb-256: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("b7ad7fa1b13a51d8ee2bd0c1329d575c6a73594b0387c40e078d445e0b8897c2f1ccaf178a0fc46e01d79809d758d144b0dc02874c1abcfad153575e8de48eae" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S1b0f9159aaa37c711bedfd80192ca4f5
(pid=94276)
/crypto/cipher/aes-cbc-128: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("46e335b8ea11bcc5b4eb7f49d114ff43282215ad3acff16be19b6f711aa13b8969fd9fb7982a3703e816143f8962560fda85ad94d34e54182a525c2b28fa0eab" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S47c21805c19462cf111f4c9a790663ba
(pid=94277)
/crypto/cipher/aes-cbc-192: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("80d40e64bd09da15f62c5d2dca6b21e3f35430b68fc5decd37d4c3fade1c5447e435ab7965e648fb53c7c802c9576fdcf49923a267c19498d8a6a53ee6d49643" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02Sae1928fd64a524afb86c99c0f0ef89b6
(pid=94280)
/crypto/cipher/aes-cbc-256: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("ce054cfa6ec264de70202e906bd57065101da549b984ee26af6e06ef80fe30b3493431a21454391ac11a1ff5dc0414b607d932eaec0446521c3ebb52b7d38f4c" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02Sf28d8a242b89a287745d6b8ea3a431d7
(pid=94281)
/crypto/cipher/des-rfb-ecb-56: OK
FAIL: tests/test-crypto-cipher
Quoted 5 lines
Quoted 2 lines
-- PMM
I'll respin without this patch. I can reproduce it with --disable-gnutls. Dan, can you take a look?
Yep, will do
Regards,
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Quoted 63 lines · Paolo Bonzini
Quoted 60 lines · Peter Maydell
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$((RANDOM % 255 + 1))} gtester -k
--verbose -m=quick tests/test-crypto-cipher
TEST: tests/test-crypto-cipher... (pid=94271)
/crypto/cipher/aes-ecb-128: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("802829a0f449928641b526a6442d2ecf8f703bdab74810779df19f78ecae4ea9a832ac2abbb3a176ebf4126be9e3d30b32fbac2152e22bd251e11302a368b610" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S93f4ba2e4a29fe76a576f8be6fc19678
(pid=94272)
/crypto/cipher/aes-ecb-192: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("37c547419be0dbb63682f5c0f199361d80c2b4be91bac925d416dd735fe9c40356833e4a660f94658ebd2b857515e1f9cf4bb9727f64105cfaa6185743eb54c2" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S9fa2f1bd7fd79de10ee302a8f59ce9b9
(pid=94275)
/crypto/cipher/aes-ecb-256: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("b7ad7fa1b13a51d8ee2bd0c1329d575c6a73594b0387c40e078d445e0b8897c2f1ccaf178a0fc46e01d79809d758d144b0dc02874c1abcfad153575e8de48eae" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S1b0f9159aaa37c711bedfd80192ca4f5
(pid=94276)
/crypto/cipher/aes-cbc-128: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("46e335b8ea11bcc5b4eb7f49d114ff43282215ad3acff16be19b6f711aa13b8969fd9fb7982a3703e816143f8962560fda85ad94d34e54182a525c2b28fa0eab" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02S47c21805c19462cf111f4c9a790663ba
(pid=94277)
/crypto/cipher/aes-cbc-192: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("80d40e64bd09da15f62c5d2dca6b21e3f35430b68fc5decd37d4c3fade1c5447e435ab7965e648fb53c7c802c9576fdcf49923a267c19498d8a6a53ee6d49643" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02Sae1928fd64a524afb86c99c0f0ef89b6
(pid=94280)
/crypto/cipher/aes-cbc-256: **
ERROR:/Users/pm215/src/qemu/tests/test-crypto-cipher.c:279:voidtest_cipher(const void *): assertion failed (outtexthex ==data->plaintext):
("ce054cfa6ec264de70202e906bd57065101da549b984ee26af6e06ef80fe30b3493431a21454391ac11a1ff5dc0414b607d932eaec0446521c3ebb52b7d38f4c" == "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710") FAIL
GTester: last random seed: R02Sf28d8a242b89a287745d6b8ea3a431d7
(pid=94281)
/crypto/cipher/des-rfb-ecb-56: OK
FAIL: tests/test-crypto-cipher
Quoted 5 lines
Quoted 2 lines
-- PMM
I'll respin without this patch. I can reproduce it with --disable-gnutls. Dan, can you take a look?
So this patch was not actually causing the problem, merely exposing a latent bug. I've just sent a fix for the root cause, which you can queue before the test case patch addition to preserve bisectability.
Regards,
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Quoted 4 lines · Daniel P. Berrange
Quoted 2 lines
Quoted 2 lines
I'll respin without this patch. I can reproduce it with --disable-gnutls. Dan, can you take a look?
So this patch was not actually causing the problem, merely exposing a latent bug.
Yes, that was likely.
Quoted 2 lines
I've just sent a fix for the root cause, which you can queue before the test case patch addition to preserve bisectability.
I'll prepare another pull request next week for these two patches if you still haven't sorted out signed tags. In the meanwhile, there was another problem reported at
https://lists.gnu.org/archive/html/qemu-devel/2015-07/msg02170.html.
Basically, with --enable-static the tools failed to link on Ubuntu.
Paolo
Quoted 13 lines · Paolo Bonzini
Quoted 4 lines · Daniel P. Berrange
Quoted 2 lines
Quoted 2 lines
I'll respin without this patch. I can reproduce it with --disable-gnutls. Dan, can you take a look?
So this patch was not actually causing the problem, merely exposing a latent bug.
Yes, that was likely.
Quoted 2 lines
I've just sent a fix for the root cause, which you can queue before the test case patch addition to preserve bisectability.
Quoted 6 lines
I'll prepare another pull request next week for these two patches if you still haven't sorted out signed tags. In the meanwhile, there was another problem reported at
https://lists.gnu.org/archive/html/qemu-devel/2015-07/msg02170.html.Basically, with --enable-static the tools failed to link on Ubuntu.
Ok, I'll investigate that and try to send another patch before your next pull request.
Regards,
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|