Trivial patches for June 16 to June 24 2011
Subsystems (3)
(I currently do not have access to my <[email protected]> email address.)
The following changes since commit 744d3644181ddb16ef5944a0f9217e46961c8c84:
coreaudio: Fix OSStatus format specifier (2011-06-23 18:56:58 +0400)
are available in the git repository at:
ssh://repo.or.cz/srv/git/qemu/stefanha.git trivial-patches
Jan Kiszka (2):
Align dummy display to fixed-size active console Do not include compatfd for WIN32
Juan Quintela (1):
exec: last_first_tb was only used in !ONLY_USER case
Marc-Antoine Perennou (1):
qemu-kvm: fix pulseaudio detection in configure
Markus Armbruster (5):
sheepdog: qemu_bh_new() can't return null pointer, drop check Strip trailing '\n' from error_report()'s first argument
qemu-img: Don't prepend qemu-img to error messages twice. Spell "unkown" correctly in error_report() arguments
blockdev: Put space after comma in error message
Matthew Fernandez (1):
Fix comment typos in hw/armv7m.c
Peter Maydell (2):
configure: Don't create symlinks to nonexistent targets
MAINTAINERS: Fix typo in email address
Stefan Weil (1):
w32: Remove redundant definitions of PRI*64
MAINTAINERS | 2 +- block-migration.c | 2 +- block/qcow2.c | 2 +- block/sheepdog.c | 90 ++++++++++++++++++++++------------------------- blockdev.c | 2 +- configure | 6 ++- console.c | 9 ++++- cpus.c | 3 ++ exec.c | 10 ++++-- hw/armv7m.c | 4 +- hw/lm32_sys.c | 2 +- hw/lm32_timer.c | 4 +- hw/lm32_uart.c | 4 +- hw/milkymist-ac97.c | 4 +- hw/milkymist-memcard.c | 4 +- hw/milkymist-minimac2.c | 6 ++-- hw/milkymist-pfpu.c | 4 +- hw/milkymist-softusb.c | 8 ++-- hw/milkymist-sysctl.c | 4 +- hw/milkymist-tmu2.c | 8 ++-- hw/qdev.c | 2 +- hw/strongarm.c | 4 +- hw/usb-ccid.c | 2 +- hw/virtio-serial-bus.c | 10 +++--- hw/virtio.c | 4 +- net.c | 2 +- net/socket.c | 6 ++-- qemu-common.h | 5 --- qemu-error.c | 2 + qemu-img.c | 12 +++--- 30 files changed, 117 insertions(+), 110 deletions(-)
Signature · 1 line
1.7.5.4
PATCH 1/13 configure: Don't create symlinks to nonexistent targets
From: Peter Maydell <[email protected]>
When we create the symlinks to source tree files, don't create them if the file is not actually present in the source tree; this will happen if the file is in a git submodule that wasn't checked out.
This also avoids the odd effect where an in-source-tree configure will end up creating the missing file as a symlink to itself.
--- configure | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
configure +3 -1
@@ -3479,7 +3479,9 @@ for bios_file in $source_path/pc-bios/*.bin $source_path/pc-bios/*.rom $source_p done mkdir -p $DIRS for f in $FILES ; do - test -e $f || symlink $source_path/$f $f + if [ -e "$source_path/$f" ] && ! [ -e "$f" ]; then + symlink "$source_path/$f" "$f" + fi done # temporary config to build submodules
Signature · 1 line
1.7.5.4
PATCH 2/13 Align dummy display to fixed-size active console
In reply to Stefan HajnocziFrom: Jan Kiszka <[email protected]>
This fixes e.g. '-vga none -monitor vc:120Cx50C'.
--- console.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
console.c +8 -1
@@ -1349,8 +1349,15 @@ static struct DisplayAllocator default_allocator = {static void dumb_display_init (void ) {DisplayState *ds =qemu_mallocz (sizeof (DisplayState)); +int width =640 ; +int height =480 ; + ds->allocator = &default_allocator; - ds->surface =qemu_create_displaysurface (ds,640 ,480 ); +if (is_fixedsize_console ()) { + width = active_console->g_width; + height = active_console->g_height; + } + ds->surface =qemu_create_displaysurface (ds, width, height);register_displaystate (ds); }
Signature · 1 line
1.7.5.4
PATCH 3/13 sheepdog: qemu_bh_new() can't return null pointer, drop check
In reply to Stefan HajnocziFrom: Markus Armbruster <[email protected]>
--- block/sheepdog.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-)
block/sheepdog.c +0 -6
@@ -449,13 +449,7 @@ static int sd_schedule_bh(QEMUBHFunc *cb, SheepdogAIOCB *acb) } acb->bh =qemu_bh_new (cb, acb); -if (!acb->bh) { -error_report ("oom: %d %d\n" , acb->aiocb_type, acb->aiocb_type); -return -EIO ; - } -qemu_bh_schedule (acb->bh); -return 0 ; }
Signature · 1 line
1.7.5.4
PATCH 4/13 Strip trailing '\n' from error_report()'s first argument
In reply to Stefan HajnocziFrom: Markus Armbruster <[email protected]>
error_report() prepends location, and appends a newline. The message constructed from the arguments should not contain a newline. Fix the obvious offenders.
--- block-migration.c | 2 +- block/qcow2.c | 2 +- block/sheepdog.c | 84 +++++++++++++++++++++++----------------------- hw/milkymist-minimac2.c | 6 ++-- hw/milkymist-pfpu.c | 4 +- hw/milkymist-softusb.c | 8 ++-- hw/milkymist-tmu2.c | 8 ++-- hw/qdev.c | 2 +- hw/strongarm.c | 4 +- hw/usb-ccid.c | 2 +- hw/virtio-serial-bus.c | 10 +++--- hw/virtio.c | 4 +- net.c | 2 +- net/socket.c | 6 ++-- qemu-error.c | 2 + qemu-img.c | 4 +- 16 files changed, 76 insertions(+), 74 deletions(-)
block-migration.c +1 -1
@@ -671,7 +671,7 @@ static int block_load(QEMUFile *f, void *opaque, int version_id) bs_prev = bs; total_sectors =bdrv_getlength (bs) >>BDRV_SECTOR_BITS ;if (total_sectors <=0 ) { -error_report ("Error getting length of block device %s\n" , +error_report ("Error getting length of block device %s" , device_name);return -EINVAL ; }
block/qcow2.c +1 -1
@@ -936,7 +936,7 @@ static int qcow2_create2(const char *filename, int64_t total_size, (1 << cluster_bits) != cluster_size) {error_report ( -"Cluster size must be a power of two between %d and %dk\n" , +"Cluster size must be a power of two between %d and %dk" ,1 <<MIN_CLUSTER_BITS ,1 << (MAX_CLUSTER_BITS -10 ));return -EINVAL ; }
block/sheepdog.c +42 -42
332 lines not on this page · raw message
hw/milkymist-minimac2.c +3 -3
@@ -234,20 +234,20 @@ static void minimac2_tx(MilkymistMinimac2State *s)uint8_t *buf = s->tx_buf;if (txcount <64 ) { -error_report ("milkymist_minimac2: ethernet frame too small (%u < %u)\n" , +error_report ("milkymist_minimac2: ethernet frame too small (%u < %u)" , txcount,64 ); goto err; }if (txcount >MINIMAC2_MTU ) { -error_report ("milkymist_minimac2: MTU exceeded (%u > %u)\n" , +error_report ("milkymist_minimac2: MTU exceeded (%u > %u)" , txcount,MINIMAC2_MTU ); goto err; }if (memcmp (buf, preamble_sfd,8 ) !=0 ) {error_report ("milkymist_minimac2: frame doesn't contain the preamble " -"and/or the SFD (%02x %02x %02x %02x %02x %02x %02x %02x)\n" , +"and/or the SFD (%02x %02x %02x %02x %02x %02x %02x %02x)" , buf[0 ], buf[1 ], buf[2 ], buf[3 ], buf[4 ], buf[5 ], buf[6 ], buf[7 ]); goto err; }
hw/milkymist-pfpu.c +2 -2
@@ -301,7 +301,7 @@ static int pfpu_decode_insn(MilkymistPFPUState *s) }break ;default : -error_report ("milkymist_pfpu: unknown opcode %d\n" , op); +error_report ("milkymist_pfpu: unknown opcode %d" , op);break ; }
@@ -358,7 +358,7 @@ static void pfpu_start(MilkymistPFPUState *s)/* decode at most MICROCODE_WORDS instructions */ if (i++ >=MICROCODE_WORDS ) {error_report ("milkymist_pfpu: too many instructions " -"executed in microcode. No VECTOUT?\n" ); +"executed in microcode. No VECTOUT?" );break ; } }
hw/milkymist-softusb.c +4 -4
@@ -131,7 +131,7 @@ static inline void softusb_read_dmem(MilkymistSoftUsbState *s, {if (offset + len >= s->dmem_size) {error_report ("milkymist_softusb: read dmem out of bounds " -"at offset 0x%x, len %d\n" , offset, len); +"at offset 0x%x, len %d" , offset, len);return ; }
@@ -143,7 +143,7 @@ static inline void softusb_write_dmem(MilkymistSoftUsbState *s, {if (offset + len >= s->dmem_size) {error_report ("milkymist_softusb: write dmem out of bounds " -"at offset 0x%x, len %d\n" , offset, len); +"at offset 0x%x, len %d" , offset, len);return ; }
@@ -155,7 +155,7 @@ static inline void softusb_read_pmem(MilkymistSoftUsbState *s, {if (offset + len >= s->pmem_size) {error_report ("milkymist_softusb: read pmem out of bounds " -"at offset 0x%x, len %d\n" , offset, len); +"at offset 0x%x, len %d" , offset, len);return ; }
@@ -167,7 +167,7 @@ static inline void softusb_write_pmem(MilkymistSoftUsbState *s, {if (offset + len >= s->pmem_size) {error_report ("milkymist_softusb: write pmem out of bounds " -"at offset 0x%x, len %d\n" , offset, len); +"at offset 0x%x, len %d" , offset, len);return ; }
hw/milkymist-tmu2.c +4 -4
@@ -352,21 +352,21 @@ static uint32_t tmu2_read(void *opaque, target_phys_addr_t addr)static void tmu2_check_registers (MilkymistTMU2State *s) {if (s->regs[R_BRIGHTNESS ] >MAX_BRIGHTNESS ) { -error_report ("milkymist_tmu2: max brightness is %d\n" ,MAX_BRIGHTNESS ); +error_report ("milkymist_tmu2: max brightness is %d" ,MAX_BRIGHTNESS ); }if (s->regs[R_ALPHA ] >MAX_ALPHA ) { -error_report ("milkymist_tmu2: max alpha is %d\n" ,MAX_ALPHA ); +error_report ("milkymist_tmu2: max alpha is %d" ,MAX_ALPHA ); }if (s->regs[R_VERTICESADDR ] &0x07 ) {error_report ("milkymist_tmu2: vertex mesh address has to be 64-bit " -"aligned\n" ); +"aligned" ); }if (s->regs[R_TEXFBUF ] &0x01 ) {error_report ("milkymist_tmu2: texture buffer address has to be " -"16-bit aligned\n" ); +"16-bit aligned" ); } }
hw/qdev.c +1 -1
@@ -371,7 +371,7 @@ void qdev_init_nofail(DeviceState *dev)DeviceInfo *info = dev->info;if (qdev_init (dev) <0 ) { -error_report ("Initialization of device %s failed\n" , info->name); +error_report ("Initialization of device %s failed" , info->name);exit (1 ); } }
hw/strongarm.c +2 -2
@@ -1536,14 +1536,14 @@ StrongARMState *sa1110_init(unsigned int sdram_size, const char *rev) }if (strncmp (rev,"sa1110" ,6 )) { -error_report ("Machine requires a SA1110 processor.\n" ); +error_report ("Machine requires a SA1110 processor." );exit (1 ); } s->env =cpu_init (rev);if (!s->env) { -error_report ("Unable to find CPU definition\n" ); +error_report ("Unable to find CPU definition" );exit (1 ); }
hw/usb-ccid.c +1 -1
@@ -1240,7 +1240,7 @@ static int ccid_card_init(DeviceState *qdev, DeviceInfo *base)return -1 ; }if (s->card !=NULL ) { -error_report ("Warning: usb-ccid card already full, not adding\n" ); +error_report ("Warning: usb-ccid card already full, not adding" );return -1 ; } ret = info->initfn ? info->initfn (card) : ret;
hw/virtio-serial-bus.c +5 -5
@@ -337,7 +337,7 @@ static void handle_control_message(VirtIOSerial *vser, void *buf, size_t len)switch (cpkt.event) {case VIRTIO_CONSOLE_DEVICE_READY :if (!cpkt.value) { -error_report ("virtio-serial-bus: Guest failure in adding device %s\n" , +error_report ("virtio-serial-bus: Guest failure in adding device %s" , vser->bus.qbus.name);break ; }
@@ -352,7 +352,7 @@ static void handle_control_message(VirtIOSerial *vser, void *buf, size_t len)case VIRTIO_CONSOLE_PORT_READY :if (!cpkt.value) { -error_report ("virtio-serial-bus: Guest failure in adding port %u for device %s\n" , +error_report ("virtio-serial-bus: Guest failure in adding port %u for device %s" , port->id, vser->bus.qbus.name);break ; }
@@ -741,7 +741,7 @@ static int virtser_port_qdev_init(DeviceState *qdev, DeviceInfo *base) plugging_port0 = info->is_console && !find_port_by_id (port->vser,0 );if (find_port_by_id (port->vser, port->id)) { -error_report ("virtio-serial-bus: A port already exists at id %u\n" , +error_report ("virtio-serial-bus: A port already exists at id %u" , port->id);return -1 ; }
@@ -752,7 +752,7 @@ static int virtser_port_qdev_init(DeviceState *qdev, DeviceInfo *base) }else { port->id =find_free_port_id (port->vser);if (port->id ==VIRTIO_CONSOLE_BAD_ID ) { -error_report ("virtio-serial-bus: Maximum port limit for this device reached\n" ); +error_report ("virtio-serial-bus: Maximum port limit for this device reached" );return -1 ; } }
@@ -760,7 +760,7 @@ static int virtser_port_qdev_init(DeviceState *qdev, DeviceInfo *base) max_nr_ports =tswap32 (port->vser->config.max_nr_ports);if (port->id >= max_nr_ports) { -error_report ("virtio-serial-bus: Out-of-range port id specified, max. allowed: %u\n" , +error_report ("virtio-serial-bus: Out-of-range port id specified, max. allowed: %u" , max_nr_ports -1 );return -1 ; }
hw/virtio.c +2 -2
@@ -797,7 +797,7 @@ int virtio_load(VirtIODevice *vdev, QEMUFile *f)/* Check it isn't doing very strange things with descriptor numbers. */ if (nheads > vdev->vq[i].vring.num) {error_report ("VQ %d size 0x%x Guest index 0x%x " -"inconsistent with Host index 0x%x: delta 0x%x\n" , +"inconsistent with Host index 0x%x: delta 0x%x" , i, vdev->vq[i].vring.num,vring_avail_idx (&vdev->vq[i]), vdev->vq[i].last_avail_idx, nheads);
@@ -805,7 +805,7 @@ int virtio_load(VirtIODevice *vdev, QEMUFile *f) } }else if (vdev->vq[i].last_avail_idx) {error_report ("VQ %d address 0x0 " -"inconsistent with Host index 0x%x\n" , +"inconsistent with Host index 0x%x" , i, vdev->vq[i].last_avail_idx);return -1 ; }
net.c +1 -1
@@ -710,7 +710,7 @@ int qemu_find_nic_model(NICInfo *nd, const char * const *models,return i; } -error_report ("qemu: Unsupported NIC model: %s" , nd->model); +error_report ("Unsupported NIC model: %s" , nd->model);return -1 ; }
net/socket.c +3 -3
@@ -530,7 +530,7 @@ int net_init_socket(QemuOpts *opts, qemu_opt_get(opts, "connect") || qemu_opt_get(opts, "mcast") || qemu_opt_get(opts, "localaddr")) { -error_report ("listen=, connect=, mcast= and localaddr= is invalid with fd=\n" ); +error_report ("listen=, connect=, mcast= and localaddr= is invalid with fd=" );return -1 ; }
@@ -550,7 +550,7 @@ int net_init_socket(QemuOpts *opts, qemu_opt_get(opts, "connect") || qemu_opt_get(opts, "mcast") || qemu_opt_get(opts, "localaddr")) { -error_report ("fd=, connect=, mcast= and localaddr= is invalid with listen=\n" ); +error_report ("fd=, connect=, mcast= and localaddr= is invalid with listen=" );return -1 ; }
@@ -566,7 +566,7 @@ int net_init_socket(QemuOpts *opts, qemu_opt_get(opts, "listen") || qemu_opt_get(opts, "mcast") || qemu_opt_get(opts, "localaddr")) { -error_report ("fd=, listen=, mcast= and localaddr= is invalid with connect=\n" ); +error_report ("fd=, listen=, mcast= and localaddr= is invalid with connect=" );return -1 ; }
qemu-error.c +2 -0
@@ -193,6 +193,8 @@ void error_print_loc(void)/* * Print an error message to current monitor if we have one, else to stderr. +* Format arguments like sprintf(). The result should not contain +* newlines. * Prepend the current location and append a newline. * It's wrong to call this in a QMP monitor. Use qerror_report() there. */
qemu-img.c +2 -2
@@ -690,12 +690,12 @@ static int img_convert(int argc, char **argv)if (snapshot_name !=NULL ) {if (bs_n >1 ) { -error_report ("No support for concatenating multiple snapshot\n" ); +error_report ("No support for concatenating multiple snapshot" ); ret =-1 ; goto out; }if (bdrv_snapshot_load_tmp (bs[0 ], snapshot_name) <0 ) { -error_report ("Failed to load snapshot\n" ); +error_report ("Failed to load snapshot" ); ret =-1 ; goto out; }
Signature · 1 line
1.7.5.4
PATCH 5/13 qemu-img: Don't prepend qemu-img to error messages twice.
In reply to Stefan HajnocziFrom: Markus Armbruster <[email protected]>
error_report() prepends the location already. Example:
$ qemu-img convert -6 qemu-img: qemu-img: option -6 is deprecated, please use '-o compat6' instead!
--- qemu-img.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
qemu-img.c +4 -4
@@ -304,11 +304,11 @@ static int img_create(int argc, char **argv) fmt = optarg;break ;case 'e' : -error_report ("qemu-img: option -e is deprecated, please use \'-o " +error_report ("option -e is deprecated, please use \'-o " "encryption\' instead!" );return 1 ;case '6' : -error_report ("qemu-img: option -6 is deprecated, please use \'-o " +error_report ("option -6 is deprecated, please use \'-o " "compat6\' instead!" );return 1 ;case 'o' :
@@ -633,11 +633,11 @@ static int img_convert(int argc, char **argv) compress =1 ;break ;case 'e' : -error_report ("qemu-img: option -e is deprecated, please use \'-o " +error_report ("option -e is deprecated, please use \'-o " "encryption\' instead!" );return 1 ;case '6' : -error_report ("qemu-img: option -6 is deprecated, please use \'-o " +error_report ("option -6 is deprecated, please use \'-o " "compat6\' instead!" );return 1 ;case 'o' :
Signature · 1 line
1.7.5.4
PATCH 6/13 Spell "unkown" correctly in error_report() arguments
In reply to Stefan HajnocziFrom: Markus Armbruster <[email protected]>
--- hw/lm32_sys.c | 2 +- hw/lm32_timer.c | 4 ++-- hw/lm32_uart.c | 4 ++-- hw/milkymist-ac97.c | 4 ++-- hw/milkymist-memcard.c | 4 ++-- hw/milkymist-sysctl.c | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-)
hw/lm32_sys.c +1 -1
@@ -83,7 +83,7 @@ static void sys_write(void *opaque, target_phys_addr_t addr, uint32_t value)break ;default : -error_report ("lm32_sys: write access to unkown register 0x" +error_report ("lm32_sys: write access to unknown register 0x" TARGET_FMT_plx, addr <<2 );break ; }
hw/lm32_timer.c +2 -2
@@ -86,7 +86,7 @@ static uint32_t timer_read(void *opaque, target_phys_addr_t addr) r = (uint32_t )ptimer_get_count (s->ptimer);break ;default : -error_report ("lm32_timer: read access to unkown register 0x" +error_report ("lm32_timer: read access to unknown register 0x" TARGET_FMT_plx, addr <<2 );break ; }
@@ -124,7 +124,7 @@ static void timer_write(void *opaque, target_phys_addr_t addr, uint32_t value) TARGET_FMT_plx, addr << 2);break ;default : -error_report ("lm32_timer: write access to unkown register 0x" +error_report ("lm32_timer: write access to unknown register 0x" TARGET_FMT_plx, addr <<2 );break ; }
hw/lm32_uart.c +2 -2
@@ -149,7 +149,7 @@ static uint32_t uart_read(void *opaque, target_phys_addr_t addr) TARGET_FMT_plx, addr << 2);break ;default : -error_report ("lm32_uart: read access to unkown register 0x" +error_report ("lm32_uart: read access to unknown register 0x" TARGET_FMT_plx, addr <<2 );break ; }
@@ -185,7 +185,7 @@ static void uart_write(void *opaque, target_phys_addr_t addr, uint32_t value) TARGET_FMT_plx, addr << 2);break ;default : -error_report ("lm32_uart: write access to unkown register 0x" +error_report ("lm32_uart: write access to unknown register 0x" TARGET_FMT_plx, addr <<2 );break ; }
hw/milkymist-ac97.c +2 -2
@@ -103,7 +103,7 @@ static uint32_t ac97_read(void *opaque, target_phys_addr_t addr)break ;default : -error_report ("milkymist_ac97: read access to unkown register 0x" +error_report ("milkymist_ac97: read access to unknown register 0x" TARGET_FMT_plx, addr <<2 );break ; }
@@ -152,7 +152,7 @@ static void ac97_write(void *opaque, target_phys_addr_t addr, uint32_t value)break ;default : -error_report ("milkymist_ac97: write access to unkown register 0x" +error_report ("milkymist_ac97: write access to unknown register 0x" TARGET_FMT_plx, addr);break ; }
hw/milkymist-memcard.c +2 -2
@@ -154,7 +154,7 @@ static uint32_t memcard_read(void *opaque, target_phys_addr_t addr)break ;default : -error_report ("milkymist_memcard: read access to unkown register 0x" +error_report ("milkymist_memcard: read access to unknown register 0x" TARGET_FMT_plx, addr <<2 );break ; }
@@ -210,7 +210,7 @@ static void memcard_write(void *opaque, target_phys_addr_t addr, uint32_t value)break ;default : -error_report ("milkymist_memcard: write access to unkown register 0x" +error_report ("milkymist_memcard: write access to unknown register 0x" TARGET_FMT_plx, addr <<2 );break ; }
hw/milkymist-sysctl.c +2 -2
@@ -119,7 +119,7 @@ static uint32_t sysctl_read(void *opaque, target_phys_addr_t addr)break ;default : -error_report ("milkymist_sysctl: read access to unkown register 0x" +error_report ("milkymist_sysctl: read access to unknown register 0x" TARGET_FMT_plx, addr <<2 );break ; }
@@ -189,7 +189,7 @@ static void sysctl_write(void *opaque, target_phys_addr_t addr, uint32_t value)break ;default : -error_report ("milkymist_sysctl: write access to unkown register 0x" +error_report ("milkymist_sysctl: write access to unknown register 0x" TARGET_FMT_plx, addr <<2 );break ; }
Signature · 1 line
1.7.5.4
PATCH 7/13 blockdev: Put space after comma in error message
In reply to Stefan HajnocziFrom: Markus Armbruster <[email protected]>
--- blockdev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
blockdev.c +1 -1
@@ -293,7 +293,7 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi)if ((buf =qemu_opt_get (opts,"trans" )) !=NULL ) {if (!cyls) { -error_report ("'%s' trans must be used with cyls,heads and secs" , +error_report ("'%s' trans must be used with cyls, heads and secs" , buf);return NULL ; }
Signature · 1 line
1.7.5.4
PATCH 8/13 MAINTAINERS: Fix typo in email address
In reply to Stefan HajnocziFrom: Peter Maydell <[email protected]>
Fix a typo in one of the copies of Aurelien Jarno's email address.
--- MAINTAINERS | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
MAINTAINERS +1 -1
@@ -480,7 +480,7 @@ S: Maintained F: tcg/ia64/ MIPS target -M: Aurelien Jarno <[email protected]> +M: Aurelien Jarno <[email protected]> S: Maintained F: tcg/mips/
Signature · 1 line
1.7.5.4
PATCH 9/13 Fix comment typos in hw/armv7m.c
In reply to Stefan HajnocziFrom: Matthew Fernandez <[email protected]>
Fix a couple of typos in comments.
--- hw/armv7m.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
hw/armv7m.c +2 -2
@@ -4,7 +4,7 @@* Copyright (c) 2006-2007 CodeSourcery. * Written by Paul Brook * -* This code is licenced under the GPL. +* This code is licensed under the GPL. */ #include "sysbus.h"
@@ -14,7 +14,7 @@/* Bitbanded IO. Each word corresponds to a single bit. */ -/* Get the byte address of the real memory for a bitband acess. */ +/* Get the byte address of the real memory for a bitband access. */ static inline uint32_t bitband_addr (void * opaque,uint32_t addr) {uint32_t res;
Signature · 1 line
1.7.5.4
PATCH 10/13 Do not include compatfd for WIN32
In reply to Stefan HajnocziFrom: Jan Kiszka <[email protected]>
sigset_t, used by that header, is not available in mingw32 environments.
--- cpus.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
cpus.c +3 -0
@@ -34,7 +34,10 @@#include "qemu-thread.h" #include "cpus.h" + +#ifndef _WIN32#include "compatfd.h" +#endif #ifdef SIGRTMIN #define SIG_IPI (SIGRTMIN+4)
Signature · 1 line
1.7.5.4
PATCH 11/13 w32: Remove redundant definitions of PRI*64
In reply to Stefan HajnocziFrom: Stefan Weil <[email protected]>
The PRI*64 macros are defined in MinGW's inttypes.h since 2002, so they are not needed in qemu-common.h (which includes inttypes.h).
--- qemu-common.h | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-)
qemu-common.h +0 -5
@@ -112,11 +112,6 @@ static inline char *realpath(const char *path, char *resolved_path)_fullpath (resolved_path, path, _MAX_PATH); return resolved_path; } - -#define PRId64 "I64d" -#define PRIx64 "I64x" -#define PRIu64 "I64u" -#define PRIo64 "I64o"#endif /* FIXME: Remove NEED_CPU_H. */
Signature · 1 line
1.7.5.4
PATCH 12/13 exec: last_first_tb was only used in !ONLY_USER case
In reply to Stefan HajnocziFrom: Juan Quintela <[email protected]>
Once there, use a better variable name.
--- exec.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
exec.c +7 -3
@@ -1208,12 +1208,16 @@ static inline void tb_alloc_page(TranslationBlock *tb, unsigned int n, tb_page_addr_t page_addr) {PageDesc *p; -TranslationBlock *last_first_tb; +#ifndef CONFIG_USER_ONLY +bool page_already_protected; +#endif tb->page_addr[n] = page_addr; p =page_find_alloc (page_addr >>TARGET_PAGE_BITS ,1 ); tb->page_next[n] = p->first_tb; - last_first_tb = p->first_tb; +#ifndef CONFIG_USER_ONLY + page_already_protected = p->first_tb !=NULL ; +#endif p->first_tb = (TranslationBlock *)((long )tb | n);invalidate_page_bitmap (p);
@@ -1249,7 +1253,7 @@ static inline void tb_alloc_page(TranslationBlock *tb,/* if some code is already present, then the pages are already protected. So we handle the case where only the first TB is allocated in a physical page */ -if (!last_first_tb) { +if (!page_already_protected) {tlb_protect_code (page_addr); }#endif
Signature · 1 line
1.7.5.4
PATCH 13/13 qemu-kvm: fix pulseaudio detection in configure
In reply to Stefan HajnocziFrom: Marc-Antoine Perennou <[email protected]>
pulse/simple.h does not include stdlib.h
We cannot use NULL since it may not be defined
Use 0 instead
--- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
@@ -1638,7 +1638,7 @@ for drv in $audio_drv_list; do pa) audio_drv_probe $drv pulse/simple.h "-lpulse-simple -lpulse" \ - "pa_simple *s = NULL; pa_simple_free(s); return 0;" + "pa_simple *s = 0; pa_simple_free(s); return 0;" libs_softmmu="-lpulse -lpulse-simple $libs_softmmu" audio_pt_int="yes" ;;
Signature · 1 line
1.7.5.4
Quoted 9 lines · Stefan Hajnoczi
(I currently do not have access to my<[email protected]> email address.)
The following changes since commit
744d3644181ddb16ef5944a0f9217e46961c8c84:coreaudio: Fix OSStatus format specifier (2011-06-23 18:56:58 +0400)
are available in the git repository at:
ssh://repo.or.cz/srv/git/qemu/stefanha.git trivial-patches
Pulled. Thanks.
Regards,
Anthony Liguori
Quoted 60 lines
Jan Kiszka (2):
Align dummy display to fixed-size active console Do not include compatfd for WIN32Juan Quintela (1):
exec:last_first_tbwas only used in !ONLY_USER caseMarc-Antoine Perennou (1):
qemu-kvm: fix pulseaudio detection in configureMarkus Armbruster (5):
sheepdog:qemu_bh_new()can't return null pointer, drop check Strip trailing '\n' from error_report()'s first argument
qemu-img: Don't prepend qemu-img to error messages twice. Spell "unkown" correctly inerror_report()arguments
blockdev: Put space after comma in error messageMatthew Fernandez (1):
Fix comment typos inhw/armv7m.cPeter Maydell (2):
configure: Don't create symlinks to nonexistent targets
MAINTAINERS: Fix typo in email addressStefan Weil (1):
w32: Remove redundant definitions of PRI*64MAINTAINERS | 2 +- block-migration.c | 2 +- block/qcow2.c | 2 +- block/sheepdog.c | 90 ++++++++++++++++++++++------------------------- blockdev.c | 2 +- configure | 6 ++- console.c | 9 ++++- cpus.c | 3 ++ exec.c | 10 ++++-- hw/armv7m.c | 4 +- hw/lm32_sys.c | 2 +- hw/lm32_timer.c | 4 +- hw/lm32_uart.c | 4 +- hw/milkymist-ac97.c | 4 +- hw/milkymist-memcard.c | 4 +- hw/milkymist-minimac2.c | 6 ++-- hw/milkymist-pfpu.c | 4 +- hw/milkymist-softusb.c | 8 ++-- hw/milkymist-sysctl.c | 4 +- hw/milkymist-tmu2.c | 8 ++-- hw/qdev.c | 2 +- hw/strongarm.c | 4 +- hw/usb-ccid.c | 2 +- hw/virtio-serial-bus.c | 10 +++--- hw/virtio.c | 4 +- net.c | 2 +- net/socket.c | 6 ++-- qemu-common.h | 5 --- qemu-error.c | 2 + qemu-img.c | 12 +++--- 30 files changed, 117 insertions(+), 110 deletions(-)