[Qemu-devel] func call to safely shutdown VM and quit qemu?

2012-12-03 Thread Peter Cheung
Hi Is there a func call to safely shutdown VM and quit qemu? Thanksfrom Peter

Re: [Qemu-devel] [PATCH] exynos4210/mct: Avoid infinite loop on non incremental timers

2012-12-03 Thread Evgeny Voevodin
On 12/01/2012 09:08 PM, Jean-Christophe DUBOIS wrote: Check for a 0 distance value to avoid infinite loop when the expired FCR timer was not programed with auto-increment. With this change the behavior is coherent with the same type of code in the exynos4210_gfrc_restart() function in the same

Re: [Qemu-devel] [RFC PATCH V4 0/6] Virtio refactoring.

2012-12-03 Thread KONRAD Frédéric
On 30/11/2012 19:43, Peter Maydell wrote: On 30 November 2012 17:12, fred.kon...@greensocs.com wrote: From: KONRAD Frederic fred.kon...@greensocs.com I send this RFC, to know if you're all happy with the current structure of the device (QOM). The general layout of classes looks OK to me,

Re: [Qemu-devel] func call to safely shutdown VM and quit qemu?

2012-12-03 Thread Laurent Desnogues
On Mon, Dec 3, 2012 at 9:43 AM, Peter Cheung mcheun...@hotmail.com wrote: Hi Is there a func call to safely shutdown VM and quit qemu? I am using qemu_system_shutdown_request(). I don't know it that's the best way of quitting, but it works for me. HTH, Laurent

Re: [Qemu-devel] [PATCH] target-i386:slightly refactor dr7 related function

2012-12-03 Thread Jan Kiszka
On 2012-12-03 04:07, liguang wrote: 1. define names of breakpoints in dr7 2. slightly refactor bits field of breakpoint related functions. Two topics, (at least) two patches, please. The code is hairy - not your fault, you actually try to improve it. But splitting up makes review easier.

[Qemu-devel] [PATCH 2/3] configure: also symlink *.aml files

2012-12-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 994f731..8483388 100755 --- a/configure +++ b/configure @@ -4190,6 +4190,7 @@ FILES=$FILES pc-bios/spapr-rtas/Makefile FILES=$FILES

[Qemu-devel] [PATCH 1/3] seabios: update to 3d11108f45818d75140530a184c05680f1be51ad

2012-12-03 Thread Gerd Hoffmann
Most q35 patches landed in seabios upstream. Some cleanups and the mcfg table are still missing. So pci mmconfig will not work. Basic functionality is there though. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- pc-bios/acpi-dsdt.aml | Bin 4540 - 4450 bytes pc-bios/bios.bin

Re: [Qemu-devel] [PATCH v2 6/6] add vm state to backups

2012-12-03 Thread Wenchao Xia
+static void coroutine_fn backup_start_savevm(void *opaque) +{ +assert(backup_state.driver); +assert(backup_state.writer); +int ret; +char *err = NULL; +uint64_t remaining; +int64_t maxlen; +MigrationParams params = { +.blk = 0, +.shared = 0

[Qemu-devel] [PULL for-1.3 0/3] seabios: q35 update

2012-12-03 Thread Gerd Hoffmann
Hi, Most q35 seabios patches just landed upstream. So here we go with a last-minute pull to plumb the missing q35 bits. It obviously updates seabios again. It also adds autoloading for the acpi dsdt table. With this pull qemu -M q35 JustWorks[tm]. please pull, Gerd The following changes

Re: [Qemu-devel] func call to safely shutdown VM and quit qemu?

2012-12-03 Thread Peter Cheung
Date: Mon, 3 Dec 2012 10:30:41 +0100 From: laurent.desnog...@gmail.com To: mcheun...@hotmail.com CC: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] func call to safely shutdown VM and quit qemu? On Mon, Dec 3, 2012 at 9:43 AM, Peter Cheung mcheun...@hotmail.com wrote: Hi Is there a

[Qemu-devel] [PATCH 3/3] acpi: autoload dsdt

2012-12-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/pc.c | 23 +++ hw/pc.h |1 + hw/pc_piix.c |1 + hw/pc_q35.c |1 + 4 files changed, 26 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 2b5bbbf..2547c26 100644 --- a/hw/pc.c +++

Re: [Qemu-devel] [PATCH] target-i386:slightly refactor dr7 related function

2012-12-03 Thread Andreas Färber
Am 03.12.2012 10:43, schrieb Jan Kiszka: On 2012-12-03 04:07, liguang wrote: 1. define names of breakpoints in dr7 2. slightly refactor bits field of breakpoint related functions. Two topics, (at least) two patches, please. The code is hairy - not your fault, you actually try to improve

Re: [Qemu-devel] slow virtio network with vhost=on and multiple cores

2012-12-03 Thread Peter Lieven
Am 16.11.2012 um 12:00 schrieb Alexandre DERUMIER aderum...@odiso.com: While trying to reproduce the bug, we just detected that it depends on the hardware (mainboard) you run on. Sigh :-/ Hi, I can reproduce the bug on all my dell servers,differents generation (R710 (intel),R815

Re: [Qemu-devel] [PATCH RFT 0/5] usb: Clean up and extend SysBus EHCI

2012-12-03 Thread walimis
On Mon, Dec 03, 2012 at 07:59:55AM +0100, Gerd Hoffmann wrote: Hi, Gerd: In order for me to use this with the new-style Tegra2 model we will need to further move EHCISysBusState and the accompanying macros that this series adds into the hcd-ehci.h header so that it can be embedded into the

Re: [Qemu-devel] [PATCH 1.3] ehci-sysbus: Attach DMA context.

2012-12-03 Thread walimis
On Thu, Nov 29, 2012 at 12:05:14PM +1000, Peter Crosthwaite wrote: On Thu, Nov 29, 2012 at 12:00 PM, walimis walimis...@gmail.com wrote: On Thu, Nov 29, 2012 at 11:43:18AM +1000, Peter Crosthwaite wrote: This was left as NULL on the initial merge due to debate on the mailing list on how to

Re: [Qemu-devel] [PATCH V6 08/10] Create four opts list related functions

2012-12-03 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 8:47 AM, Dong Xu Wang wdon...@linux.vnet.ibm.com wrote: +/* Create a new QemuOptsList and make its desc to the merge of first and second. + * It will allocate space for one new QemuOptsList plus enouth space for s/enouth/enough/ +dest-name = append_opts_list; +

Re: [Qemu-devel] [PATCH RFT 0/5] usb: Clean up and extend SysBus EHCI

2012-12-03 Thread Peter Maydell
On 3 December 2012 11:58, walimis walimis...@gmail.com wrote: For example, xilinx_zynq has two EHCI controllers. If I specify a usb device of type usb-storage, the question is: which EHCI controller does the usb device attach to? The answer is dependent. 1. If I use usbdevice and pass the

Re: [Qemu-devel] [PATCH RFT 0/5] usb: Clean up and extend SysBus EHCI

2012-12-03 Thread walimis
On Mon, Dec 03, 2012 at 12:10:02PM +, Peter Maydell wrote: On 3 December 2012 11:58, walimis walimis...@gmail.com wrote: For example, xilinx_zynq has two EHCI controllers. If I specify a usb device of type usb-storage, the question is: which EHCI controller does the usb device attach to?

Re: [Qemu-devel] [PATCH V6 09/10] Use QemuOpts support in block layer

2012-12-03 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 8:47 AM, Dong Xu Wang wdon...@linux.vnet.ibm.com wrote: This patch will use QemuOpts related functions in block layer, add a member bdrv_create_options to BlockDriver struct, it will return a QemuOptsList pointer, which includes the image format's create options. And

Re: [Qemu-devel] [PATCH V6 00/10] replace QEMUOptionParameter with QemuOpts parser

2012-12-03 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 8:47 AM, Dong Xu Wang wdon...@linux.vnet.ibm.com wrote: Patch 1-3 are from Luiz, added Markus's comments, discussion could be found here: http://lists.nongnu.org/archive/html/qemu-devel/2012-07/msg02716.html Patch 3 was changed according Paolo's comments. Patch 4-5:

Re: [Qemu-devel] [PATCH 1.3] ehci-sysbus: Attach DMA context.

2012-12-03 Thread Gerd Hoffmann
Hi, As said in another mail, I found that the root cause is that xilinx_zynq has two EHCI controller. If we use usb-storage disk, the disk will be attached to the second EHCI controller, which the kernel uses the first EHCI controller by default. For the linux kernel it shouldn't matter

Re: [Qemu-devel] [Qemu-trivial] [PATCH] qemu-common: Add definition for O_NONBLOCK

2012-12-03 Thread Stefan Hajnoczi
On Sun, Nov 18, 2012 at 11:41:20AM +0100, Stefan Weil wrote: Am 18.11.2012 09:55, schrieb Paolo Bonzini: Il 17/11/2012 17:40, Stefan Weil ha scritto: backends/rng-random.c which was added by commit 5c74521d249486fa3e749dbbf6d56a70d4d7235f needs macro O_NONBLOCK. The macro O_NONBLOCK is not

Re: [Qemu-devel] [Qemu-trivial] [PATCH] arm: a9mpcore: remove un-used ptimer_iomem field

2012-12-03 Thread Stefan Hajnoczi
On Mon, Nov 19, 2012 at 03:13:49PM +1000, Peter Crosthwaite wrote: I'm guessing this is a hangover from a previous coreification of the mptimer sub-module. This field is completely unused - removed. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/a9mpcore.c |1 -

Re: [Qemu-devel] [Qemu-trivial] [PATCH] Clean up pci_drive_hot_add()'s use of BlockInterfaceType

2012-12-03 Thread Stefan Hajnoczi
On Thu, Nov 22, 2012 at 03:16:36PM +0100, Markus Armbruster wrote: pci_drive_hot_add() parameter type has the wrong type: int instead of BlockInterfaceType. It's actually redundant, so we can just drop it. Signed-off-by: Markus Armbruster arm...@redhat.com --- hw/device-hotplug.c | 11

Re: [Qemu-devel] [Qemu-trivial] [PATCH] Fix spelling in comments and documentation

2012-12-03 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 07:26:04AM +0100, Stefan Weil wrote: These spelling bugs were found by codespell: supressing - suppressing transfered - transferred Signed-off-by: Stefan Weil s...@weilnetz.de --- hw/usb.h |6 +++--- tests/qemu-iotests/iotests.py |2

Re: [Qemu-devel] [PATCH] qemu-options: Fix space at EOL

2012-12-03 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 09:52:39AM +0100, Michal Privoznik wrote: There's no need to add a space at the end of line. Moreover, it can make problems in some projects that store the help output into a file (and run couple of tests based on that) and have space at EOL forbidden. Signed-off-by:

Re: [Qemu-devel] [Qemu-trivial] [PATCH] qemu-timer: Don't use RDTSC on 386s and 486s

2012-12-03 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 03:12:50PM +, Peter Maydell wrote: Adjust the conditional which guards the implementation of cpu_get_real_ticks() via RDTSC, so that we don't try to use it on x86 CPUs which don't implement RDTSC. Instead we will fall back to the no-cycle-counter-available default

Re: [Qemu-devel] [Qemu-trivial] [PATCH 1/2] pc_sysfw: Check for qemu_find_file() failure

2012-12-03 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 07:12:17PM +0100, Markus Armbruster wrote: diff --git a/hw/pc_sysfw.c b/hw/pc_sysfw.c index 9d7c5f4..066c4fe 100644 --- a/hw/pc_sysfw.c +++ b/hw/pc_sysfw.c @@ -84,6 +84,11 @@ static void pc_fw_add_pflash_drv(void) bios_name = BIOS_FILENAME; }

Re: [Qemu-devel] [PATCH 2/2] pc_sysfw: Plug memory leak on pc_fw_add_pflash_drv() error path

2012-12-03 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 07:12:18PM +0100, Markus Armbruster wrote: Harmless, because we the error inevitably leads to another, fatal one in pc_system_flash_init(): PC system firmware (pflash) not available. Fix it anyway. Signed-off-by: Markus Armbruster arm...@redhat.com ---

Re: [Qemu-devel] [PATCH] net: Allow specifying ifname for qemu-bridge-helper

2012-12-03 Thread Stefan Hajnoczi
On Fri, Nov 30, 2012 at 03:35:46PM +0100, Paolo Bonzini wrote: Il 30/11/2012 08:10, Mike Lovell ha scritto: On 10/12/2012 12:49 AM, Mike Lovell wrote: This makes a few changes to allow ifname to be specified when using qemu-bridge-helper with both the bridge and tap network interfaces. It

Re: [Qemu-devel] [Qemu-trivial] [PATCH 1/2] pc_sysfw: Check for qemu_find_file() failure

2012-12-03 Thread Markus Armbruster
Stefan Hajnoczi stefa...@gmail.com writes: On Fri, Nov 23, 2012 at 07:12:17PM +0100, Markus Armbruster wrote: diff --git a/hw/pc_sysfw.c b/hw/pc_sysfw.c index 9d7c5f4..066c4fe 100644 --- a/hw/pc_sysfw.c +++ b/hw/pc_sysfw.c @@ -84,6 +84,11 @@ static void pc_fw_add_pflash_drv(void)

Re: [Qemu-devel] slow HD performance in mingw

2012-12-03 Thread Kevin Wolf
Am 30.11.2012 16:36, schrieb Roy Tam: 2012/11/30 Roy Tam roy...@gmail.com: Hello all, I noticed that QEMU(both 1.2.1 and git head) acts very slow when accessing HD. I wonder if it is a fault in my build environment? and in same environment, I can see the speed decreases when version

Re: [Qemu-devel] [PATCH RFT 0/5] usb: Clean up and extend SysBus EHCI

2012-12-03 Thread Gerd Hoffmann
Hi, Qemu doesn't provide some properties, such as bus, to specify which EHCI controller the usb device attach to. If we use device and usb-storage, we never attach the usb device to the specified EHCI controller. -device certainly ought to let you specify a bus= property; Sorry, I

Re: [Qemu-devel] [PATCH RFT 0/5] usb: Clean up and extend SysBus EHCI

2012-12-03 Thread Peter Maydell
On 3 December 2012 13:37, Gerd Hoffmann kra...@redhat.com wrote: But why both EHCI controller are named usb-bus.0? How to distinguish the different usb usb? That is the default name. For usb controllers added via -device the bus name is derived from the device name, i.e. '-device

Re: [Qemu-devel] [PATCH 1.3] ehci-sysbus: Attach DMA context.

2012-12-03 Thread walimis
On Mon, Dec 03, 2012 at 01:51:00PM +0100, Gerd Hoffmann wrote: Hi, As said in another mail, I found that the root cause is that xilinx_zynq has two EHCI controller. If we use usb-storage disk, the disk will be attached to the second EHCI controller, which the kernel uses the first EHCI

Re: [Qemu-devel] [PATCH] tests: Add tests for fdsets

2012-12-03 Thread Kevin Wolf
Am 14.11.2012 23:53, schrieb Corey Bryant: Signed-off-by: Corey Bryant cor...@linux.vnet.ibm.com --- tests/qemu-iotests/044| 129 ++ tests/qemu-iotests/044.out| 5 ++ tests/qemu-iotests/group | 1 + tests/qemu-iotests/iotests.py

[Qemu-devel] KVM call agenda for 2012-12-04

2012-12-03 Thread Juan Quintela
Hi Please send in any agenda topics you are interested in. - migration troubles from 1.2 - 1.3 due to qemu-kvm integration Later, Juan.

[Qemu-devel] detecting seccomp sandbox capability via QMP

2012-12-03 Thread Ján Tomko
Hello, is there a way to check if QEMU was compiled with --enable-seccomp via QMP? Jan

Re: [Qemu-devel] [PATCH v3] vnc: added initial websocket protocol support

2012-12-03 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 08:00:47PM +0100, Tim Hardeck wrote: Thanks for the patch, Tim. Some general code review comments below. I hope someone has time to review the VNC and WebSocket specific stuff. I didn't check the details of buffers, whether the WebSocket spec is correctly implemented,

Re: [Qemu-devel] [PATCH V10 2/8] hw/apm.c: replace register_ioport*

2012-12-03 Thread Julien Grall
On 11/27/2012 08:46 PM, Jason Baron wrote: On Tue, Nov 27, 2012 at 01:10:16AM +0100, Andreas Färber wrote: Am 19.09.2012 13:50, schrieb Julien Grall: This patch replaces all register_ioport* by a MemorySection. It permits to use the new Memory stuff like listener. Moreover, the PCI is added

[Qemu-devel] read memory by virtual address?

2012-12-03 Thread Peter Cheung
Dear AllI can read memory by a physical address cpu_physical_memory_map(), but how can i read it by linear address or virtual address? Thanksfrom Peter

[Qemu-devel] [PATCH 3/5] target-i386: postpone cpuid_level update to realize time

2012-12-03 Thread Eduardo Habkost
From: Igor Mammedov imamm...@redhat.com delay capping cpuid_level to 7 to realize time so property setters for cpuid_7_0_ebx_features and level could be used in any order/time between x86_cpu_initfn() and x86_cpu_realize(). Signed-off-by: Igor Mammedov imamm...@redhat.com --- target-i386/cpu.c

[Qemu-devel] [PATCH 2/5] target-i386: use define for cpuid vendor string size

2012-12-03 Thread Eduardo Habkost
From: Igor Mammedov imamm...@redhat.com Signed-off-by: Igor Mammedov imamm...@redhat.com --- target-i386/cpu.c | 6 +++--- target-i386/cpu.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 89fd700..569acac 100644 ---

[Qemu-devel] [PATCH 4/5] add visitor for parsing hz[KMG] input string

2012-12-03 Thread Eduardo Habkost
From: Igor Mammedov imamm...@redhat.com Signed-off-by: Igor Mammedov imamm...@redhat.com Acked-by: Andreas Färber afaer...@suse.de --- qapi/qapi-visit-core.c | 11 +++ qapi/qapi-visit-core.h | 2 ++ qapi/string-input-visitor.c | 22 ++ 3 files changed, 35

[Qemu-devel] [PATCH 1/5] target-i386: cpu: separate feature string parsing from CPU model lookup

2012-12-03 Thread Eduardo Habkost
Instead of using parsing the whole cpu_model string inside cpu_x86_find_by_name(), first split it into the CPU model name and the full feature string, then parse the feature string into pieces. When using CPU model classes, those two pieces of information will be used at different moments (CPU

[Qemu-devel] [PATCH 0/5] x86 CPU init cleanup, short version

2012-12-03 Thread Eduardo Habkost
Hi, This is a much shorter version of x86 CPU cleanup series[1] I sent earlier, including only what's really essential. I hope it will be easier to review and include, while Igor and I work on the CPU properties/subclasses code using this as base. [1] The one sent as: Subject: [Qemu-devel]

[Qemu-devel] [PATCH 5/5] target-i386: use visit_type_hz to parse tsc_freq property value

2012-12-03 Thread Eduardo Habkost
From: Igor Mammedov imamm...@redhat.com Signed-off-by: Igor Mammedov imamm...@redhat.com Reviewed-by: Andreas Färber afaer...@suse.de --- target-i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index ee03652..def801a 100644 ---

Re: [Qemu-devel] [PATCH RFT 1/5] usb/ehci: Clean up SysBus and PCI EHCI split

2012-12-03 Thread Igor Mitsyanko
On 12/02/2012 06:57 AM, Andreas Färber wrote: SysBus EHCI was introduced in a hurry before 1.3 Soft Freeze. To use QOM casts in place of DO_UPCAST() / FROM_SYSBUS(), we need an identifying type. Introduce generic abstract base types for PCI and SysBus EHCI to allow multiple types to access the

Re: [Qemu-devel] [PATCH RFT 2/5] usb/ehci: Move capsbase and opregbase into SysBus EHCI class

2012-12-03 Thread Igor Mitsyanko
On 12/02/2012 06:57 AM, Andreas Färber wrote: This allows specific derived models to use different values. Signed-off-by: Andreas Färber andreas.faer...@web.de --- hw/usb/hcd-ehci-sysbus.c | 26 -- 1 Datei geändert, 24 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-)

Re: [Qemu-devel] [PULL for-1.3 0/3] seabios: q35 update

2012-12-03 Thread Jason Baron
On Mon, Dec 03, 2012 at 11:11:55AM +0100, Gerd Hoffmann wrote: Hi, Most q35 seabios patches just landed upstream. So here we go with a last-minute pull to plumb the missing q35 bits. It obviously updates seabios again. It also adds autoloading for the acpi dsdt table. With this pull

Re: [Qemu-devel] [PATCH RFT 3/5] usb/ehci: Add SysBus EHCI device for Exynos4210

2012-12-03 Thread Igor Mitsyanko
On 12/02/2012 06:57 AM, Andreas Färber wrote: It uses a different capsbase and opregbase than the Xilinx device. Signed-off-by: Liming Wang walimis...@gmail.com Signed-off-by: Andreas Färber andreas.faer...@web.de Cc: Igor Mitsyanko i.mitsya...@samsung.com --- hw/usb/hcd-ehci-sysbus.c | 15

Re: [Qemu-devel] [PATCH RFT 4/5] exynos4210: Add EHCI support

2012-12-03 Thread Igor Mitsyanko
On 12/02/2012 06:57 AM, Andreas Färber wrote: From: Liming Wang walimis...@gmail.com Add EHCI USB host controller to exynos4210. Signed-off-by: Liming Wang walimis...@gmail.com [AF: Use type constant] Signed-off-by: Andreas Färber andreas.faer...@web.de --- hw/exynos4210.c |7 +++

Re: [Qemu-devel] read memory by virtual address?

2012-12-03 Thread Igor Mitsyanko
On 12/03/2012 08:53 PM, Peter Cheung wrote: Dear All I can read memory by a physical address cpu_physical_memory_map(), but how can i read it by linear address or virtual address? Thanks from Peter Hi, Peter, you can use cpu_memory_rw_debug/cpu_get_phys_page_debug for this. --

Re: [Qemu-devel] [PATCH 2/2 v3] Adding BAR0 for e500 PCI controller

2012-12-03 Thread Alexander Graf
On 10.10.2012, at 16:28, Bharat Bhushan wrote: PCI Root complex have TYPE-1 configuration header while PCI endpoint have type-0 configuration header. The type-1 configuration header have a BAR (BAR0). In Freescale PCI controller BAR0 is used for mapping pci address space to CCSR address

[Qemu-devel] [PATCH][RESEND] iscsi: add support for iSCSI NOPs

2012-12-03 Thread Peter Lieven
This patch will send NOP-Out PDUs every 5 seconds to the iSCSI target. If a consecutive number of NOP-In replies fail a reconnect is initiated. iSCSI NOPs help to ensure that the connection to the target is still operational. This should not, but in reality may be the case even if the TCP

Re: [Qemu-devel] [Qemu-stable] [PATCH 1.3] make_device_config.sh: Fix target path in generated dependency file

2012-12-03 Thread mdroth
On Sat, Oct 27, 2012 at 12:32:28PM +0400, Michael Tokarev wrote: Ping? Ping. Fix still applicable for 1.3, also looking to pull it in for 1.2.2. /mjt On 18.09.2012 18:32, Andreas Färber wrote: Am 18.09.2012 14:29, schrieb Michael Tokarev: Has it been applied to anything? I don't

[Qemu-devel] [PATCH] iscsi: add support for iovectors

2012-12-03 Thread Peter Lieven
This patch adds support for directly passing the iovec array from QEMUIOVector if libiscsi supports it. Signed-off-by: Peter Lieven p...@kamp.de --- block/iscsi.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/block/iscsi.c b/block/iscsi.c index

[Qemu-devel] [PATCH 5/?] hw/ds1338.c: Fix handling of DATE (wday) register

2012-12-03 Thread Antoine Mathys
Per the datasheet, the DATE (wday) register is user defined. Implement this. Signed-off-by: Antoine Mathys barsa...@gmail.com --- hw/ds1338.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/hw/ds1338.c b/hw/ds1338.c index 8f85635..c502934 100644 ---

Re: [Qemu-devel] [RFC 05/10] qdev: move reset handler list from vl.c to hw/reset.c

2012-12-03 Thread Igor Mammedov
On Fri, 30 Nov 2012 17:27:17 -0200 Eduardo Habkost ehabk...@redhat.com wrote: The core qdev code uses the reset handler list from vl.c, and currently *-user has some hacks to make CPU reset work. This moves qemu_register_reset(), qemu_unregister_reset() and qemu_devices_reset() to a new

[Qemu-devel] [ANNOUNCE] QEMU 1.3.0 release

2012-12-03 Thread Anthony Liguori
Hi, On behalf of the QEMU Team, I'd like to announce the availability of the QEMU 1.3 release! http://wiki.qemu.org/download/qemu-1.3.0.tar.bz2 This release contains over 1700 changesets from 118 unique authors. See the ChangeLog on the wiki for a full changelog:

[Qemu-devel] [ANNOUNCE] 1.4 development tree is now open

2012-12-03 Thread Anthony Liguori
Happy hacking! Regards, Anthony Liguori

Re: [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static

2012-12-03 Thread Alexander Graf
On 01.12.2012, at 12:27, Peter Maydell wrote: On 1 December 2012 10:29, Janne Karhunen 955...@bugs.launchpad.net wrote: this blocks forever, because the thing that would wake it up is the signal handler writing to the pipe we're selecting on, but we will never run the signal handler until

Re: [Qemu-devel] [RFC 05/10] qdev: move reset handler list from vl.c to hw/reset.c

2012-12-03 Thread Igor Mammedov
On Fri, 30 Nov 2012 17:27:17 -0200 Eduardo Habkost ehabk...@redhat.com wrote: The core qdev code uses the reset handler list from vl.c, and currently *-user has some hacks to make CPU reset work. This moves qemu_register_reset(), qemu_unregister_reset() and qemu_devices_reset() to a new

[Qemu-devel] [RFC] 1.4 release schedule

2012-12-03 Thread Anthony Liguori
Hi, Based on popular demand, I'd like to continue with a 3-month release cycle for the foreseeable future. One thing I'd like to fix though is to avoid major holidays during the -rc cycles. The best cycle I can figure is: Feb 15th May 15th Aug 15th Nov 15th To get us onto this schedule,

Re: [Qemu-devel] [RFC] 1.4 release schedule

2012-12-03 Thread Johnson, Eric
I think you meant to change the 1.3.0 to 1.4.0 for the milestones on the Wiki. ;-) -Original Message- From: qemu-devel-bounces+ericj=mips@nongnu.org [mailto:qemu-devel- bounces+ericj=mips@nongnu.org] On Behalf Of Anthony Liguori Sent: Monday, December 03, 2012 1:30 PM To:

Re: [Qemu-devel] [RFC] 1.4 release schedule

2012-12-03 Thread Anthony Liguori
Johnson, Eric er...@mips.com writes: I think you meant to change the 1.3.0 to 1.4.0 for the milestones on the Wiki. ;-) Indeed, fixed now. Regards, Anthony Liguori -Original Message- From: qemu-devel-bounces+ericj=mips@nongnu.org [mailto:qemu-devel-

Re: [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static

2012-12-03 Thread Peter Maydell
On 3 December 2012 21:20, Alexander Graf ag...@suse.de wrote: Could you please try and see if this patch makes a difference? http://repo.or.cz/w/qemu/agraf.git/patch/489924aa0115dc6cfcd4e91b0747da4ff8425d1f I think the answer will turn out to be no (though it's worth testing anyway), because

[Qemu-devel] Patch Round-up for stable 1.2.2, freeze Wednesday

2012-12-03 Thread Michael Roth
Hi everyone, The following new patches are queued for QEMU stable v1.2.2: https://github.com/mdroth/qemu/commits/stable-1.2-staging The release is planned for Tuesday, 12-11-2012: http://wiki.qemu.org/Planning/1.2 Please CC qemu-sta...@nongnu.org on any patches you think should be included in

[Qemu-devel] [PATCH 02/43] fix CONFIG_QEMU_HELPERDIR generation again

2012-12-03 Thread Michael Roth
From: Michael Tokarev m...@tls.msk.ru commit 38f419f35225 fixed a breakage with CONFIG_QEMU_HELPERDIR which has been introduced by 8bf188aa18ef7a8. But while techinically that fix has been correct, all other similar variables are handled differently. Make it consistent, and let

[Qemu-devel] [PATCH 03/43] ui/vnc: Only report/use TIGHT_PNG encoding if enabled.

2012-12-03 Thread Michael Roth
From: Joel Martin git...@martintribe.org If TIGHT_PNG is not enabled by the --enable-vnc-png configure flag then do not report to the client that it is supported. Also, since TIGHT_PNG is the same as the TIGHT encoding but with the filter/copy replaced with PNG data, adding it to the supported

[Qemu-devel] [PATCH 01/43] configure: Fix CONFIG_QEMU_HELPERDIR generation

2012-12-03 Thread Michael Roth
From: Jan Kiszka jan.kis...@siemens.com We need to evaluate $libexecdir in configure, otherwise we literally end up with ${prefix}/libexec instead of the absolute path as CONFIG_QEMU_HELPERDIR. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Aurelien Jarno aurel...@aurel32.net

[Qemu-devel] [PATCH 04/43] vnc: fix info vnc with -vnc ..., reverse=on

2012-12-03 Thread Michael Roth
From: Paolo Bonzini pbonz...@redhat.com When reverse connection is in use, there is no active VNC server socket. Because of this, getsockopt(-1, ...) is attempted and the following error is emitted: $ socat TCP-LISTEN:5900,reuseaddr TCP-LISTEN:5901,reuseaddr $

[Qemu-devel] [PATCH 16/43] xhci: fix usb name in caps

2012-12-03 Thread Michael Roth
From: Gerd Hoffmann kra...@redhat.com Used to be UTB not USB. Signed-off-by: Gerd Hoffmann kra...@redhat.com (cherry picked from commit 0ebfb144e8ad3f2da436d630fdcc5aa9ab646341) Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- hw/usb/hcd-xhci.c |4 ++-- 1 file changed, 2

[Qemu-devel] [PATCH 20/43] mips/malta: fix CBUS UART interrupt pin

2012-12-03 Thread Michael Roth
From: Aurelien Jarno aurel...@aurel32.net According to the MIPS Malta Developement Platform User's Manual, the i8259 interrupt controller is supposed to be connected to the hardware IRQ0, and the CBUS UART to the hardware interrupt 2. In QEMU they are both connected to hardware interrupt 0, the

[Qemu-devel] [PATCH 13/43] s390x: fix -initrd in virtio machine

2012-12-03 Thread Michael Roth
From: Alexander Graf ag...@suse.de When using -initrd in the virtio machine, we need to indicate the initrd start and size inside the kernel image. These parameters need to be stored in native endianness. Signed-off-by: Alexander Graf ag...@suse.de Acked-by: Richard Henderson r...@twiddle.net

[Qemu-devel] [PATCH 15/43] target-sparc64: disable VGA cirrus

2012-12-03 Thread Michael Roth
From: Aurelien Jarno aurel...@aurel32.net OpenBIOS on sparc64 only support Standard VGA and not Cirrus VGA. Don't build Cirrus VGA support so that it can't be selected. This fixes the breakage introduced by commit f2898771. Reported-by: Richard Henderson r...@twiddle.net Cc: Blue Swirl

[Qemu-devel] [PATCH 14/43] PPC: Bamboo: Fix memory size DT property

2012-12-03 Thread Michael Roth
From: Alexander Graf ag...@suse.de Device tree properties need to be specified in big endian. Fix the bamboo memory size property accordingly. Signed-off-by: Alexander Graf ag...@suse.de CC: qemu-sta...@nongnu.org (cherry picked from commit 5232fa59b17b45c04bd24e0d38224964816bf391)

[Qemu-devel] [PATCH 17/43] tools: initialize main loop before block layer

2012-12-03 Thread Michael Roth
From: Paolo Bonzini pbonz...@redhat.com Tools were broken because they initialized the block layer while qemu_aio_context was still NULL. Reported-by: malc av1...@comtv.ru Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: malc av1...@comtv.ru (cherry picked from commit

[Qemu-devel] [PATCH 18/43] m68k: Return semihosting errno values correctly

2012-12-03 Thread Michael Roth
From: Meador Inge mead...@codesourcery.com Fixing a simple typo, s/errno/err/, that caused the error status from GDB semihosted system calls to be returned incorrectly. Signed-off-by: Meador Inge mead...@codesourcery.com Reviewed-by: Andreas Färber afaer...@suse.de Signed-off-by: Peter Maydell

[Qemu-devel] [PATCH 21/43] target-mips: fix wrong microMIPS opcode encoding

2012-12-03 Thread Michael Roth
From: 陳韋任 (Wei-Ren Chen) che...@iis.sinica.edu.tw While reading microMIPS decoding, I found a possible wrong opcode encoding. According to [1] page 166, the bits 13..12 for MULTU is 0x01 rather than 0x00. Please review, thanks. [1] MIPS Architecture for Programmers VolumeIV-e: The MIPS DSP

[Qemu-devel] [PATCH 22/43] tcg/arm: fix TLB access in qemu-ld/st ops

2012-12-03 Thread Michael Roth
From: Aurelien Jarno aurel...@aurel32.net The TCG arm backend considers likely that the offset to the TLB entries does not exceed 12 bits for mem_index = 0. In practice this is not true for at least the MIPS target. The current patch fixes that by loading the bits 23-12 with a separate

[Qemu-devel] [PATCH 05/43] uhci: Raise interrupt when requested even for non active tds

2012-12-03 Thread Michael Roth
From: Hans de Goede hdego...@redhat.com According to the spec we must raise an interrupt when one is requested even for non active tds. Linux depends on this, for bulk transfers it runs an inactivity timer to work around a bug in early uhci revisions, when we take longer then 200 ms to process a

[Qemu-devel] [PATCH 28/43] block: Fix regression for MinGW (assertion caused by short string)

2012-12-03 Thread Michael Roth
From: Stefan Weil s...@weilnetz.de The local string tmp_filename is passed to function get_tmp_filename which expects a string with minimum size MAX_PATH for w32 hosts. MAX_PATH is 260 and PATH_MAX is 259, so tmp_filename was too short. Commit eba25057b9a5e19d10ace2bc7716667a31297169 introduced

[Qemu-devel] [PATCH 29/43] qom: dynamic_cast of NULL is always NULL

2012-12-03 Thread Michael Roth
From: Paolo Bonzini pbonz...@redhat.com Trying to cast a NULL value will cause a crash. Returning NULL is also sensible, and it is also what the type-unsafe DO_UPCAST macro does. Reported-by: Markus Armbruster arm...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by:

[Qemu-devel] [PATCH 30/43] hmp: do not crash on invalid SCSI hotplug

2012-12-03 Thread Michael Roth
From: Paolo Bonzini pbonz...@redhat.com Commit 0d93692 (qdev: Convert busses to QEMU Object Model, 2012-05-02) removed a check on the type of the bus where a SCSI disk is hotplugged. However, hot-plugging to the wrong kind of device now causes a crash due to either a NULL pointer dereference

[Qemu-devel] [PATCH 32/43] qom: fix refcount of non-heap-allocated objects

2012-12-03 Thread Michael Roth
From: Paolo Bonzini pbonz...@redhat.com The reference count for embedded objects is always one too low, because object_initialize_with_type returns with zero references to the object. This causes premature finalization of the object (or an assertion failure) after calling object_ref to add an

[Qemu-devel] [PATCH 31/43] PPC: Fix missing TRACE exception

2012-12-03 Thread Michael Roth
From: Julio Guerra gu...@julio.in This patch fixes bug 1031698 : https://bugs.launchpad.net/qemu/+bug/1031698 If we look at the (truncated) translation of the conditional branch instruction in the test submitted in the bug post, the call to the exception helper is missing in the bne-false chunk

[Qemu-devel] [PATCH 27/43] tci: Fix type of tci_read_label

2012-12-03 Thread Michael Roth
From: Richard Henderson r...@twiddle.net Fixes the pointer truncation that was occurring for branches. Cc: Stefan Weil s...@weilnetz.de Cc: Blue Swirl blauwir...@gmail.com Signed-off-by: Richard Henderson r...@twiddle.net Reviewed-by: Stefan Weil s...@weilnetz.de Tested-by: Stefan Weil

[Qemu-devel] [PATCH 10/43] target-i386: Allow tsc-frequency to be larger then 2.147G

2012-12-03 Thread Michael Roth
From: Don Slutz d...@cloudswitch.com The check using INT_MAX (2147483647) is wrong in this case. Signed-off-by: Fred Oliveira folive...@cloudswitch.com Signed-off-by: Don Slutz d...@cloudswitch.com Signed-off-by: Stefan Hajnoczi stefa...@gmail.com (cherry picked from commit

[Qemu-devel] [PATCH 26/43] qcow2: Fix refcount table size calculation

2012-12-03 Thread Michael Roth
From: Kevin Wolf kw...@redhat.com A missing factor for the refcount table entry size in the calculation could mean that too little memory was allocated for the in-memory representation of the table, resulting in a buffer overflow. Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Michael

[Qemu-devel] [PATCH 06/43] hw/qxl: qxl_dirty_surfaces: use uintptr_t

2012-12-03 Thread Michael Roth
From: Alon Levy al...@redhat.com As suggested by Paolo Bonzini, to avoid possible integer overflow issues. Signed-off-by: Alon Levy al...@redhat.com Signed-off-by: Gerd Hoffmann kra...@redhat.com (cherry picked from commit c5825ac6c861bfe1a4adfa27517931b56079e298) Signed-off-by: Michael Roth

[Qemu-devel] [PATCH 34/43] qapi: fix qapi_dealloc_type_size parameter type

2012-12-03 Thread Michael Roth
From: Bruce Rogers brog...@suse.com The second parameter to qapi_dealloc_type_size should be a uint64_t *, not a size_t *. This was causing our 32 bit x86 build to fail, since warnings are treated as errors. Signed-off-by: Bruce Rogers brog...@suse.com Reviewed-by: Michael Roth

[Qemu-devel] [PATCH 33/43] qapi: handle visitor-type_size() in QapiDeallocVisitor

2012-12-03 Thread Michael Roth
From: Stefan Hajnoczi stefa...@redhat.com visit_type_size() requires either visitor-type_size() or visitor_uint64() to be implemented, otherwise a NULL function pointer is invoked. It is possible to trigger this crash as follows: $ qemu-system-x86_64 -netdev tap,sndbuf=0,id=netdev0 \

Re: [Qemu-devel] [RFC 05/10] qdev: move reset handler list from vl.c to hw/reset.c

2012-12-03 Thread Eduardo Habkost
On Mon, Dec 03, 2012 at 10:20:03PM +0100, Igor Mammedov wrote: On Fri, 30 Nov 2012 17:27:17 -0200 Eduardo Habkost ehabk...@redhat.com wrote: The core qdev code uses the reset handler list from vl.c, and currently *-user has some hacks to make CPU reset work. This moves

[Qemu-devel] [PATCH 35/43] iscsi: fix segfault in url parsing

2012-12-03 Thread Michael Roth
From: Peter Lieven p...@dlhnet.de If an invalid URL is specified iscsi_get_error(iscsi) is called with iscsi == NULL. Signed-off-by: Peter Lieven p...@kamp.de Signed-off-by: Paolo Bonzini pbonz...@redhat.com (cherry picked from commit 8da1e18b0cf46b6c95c88bbad1cc50d6dd1bef4b) Signed-off-by:

[Qemu-devel] [PATCH 38/43] virtio-scsi: Fix some endian bugs with virtio-scsi

2012-12-03 Thread Michael Roth
From: David Gibson da...@gibson.dropbear.id.au The virtio-scsi specification does not specify the correct endianness for fields in the request structure. It's therefore best to assume that it is guest native endian since that's the (stupid and poorly defined) norm in virtio. However, the qemu

[Qemu-devel] [PATCH 42/43] stream: fix ratelimit_set_speed

2012-12-03 Thread Michael Roth
From: Dietmar Maurer diet...@proxmox.com The formula to compute slice_quota was wrong since commit 6ef228fc. Signed-off-by: Dietmar Maurer diet...@proxmox.com Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com (cherry picked from commit

[Qemu-devel] [PATCH 41/43] usb: fail usbdevice_create() when there is no USB bus

2012-12-03 Thread Michael Roth
From: Stefan Hajnoczi stefa...@redhat.com Report an error instead of segfaulting when attaching a USB device to a machine with no USB busses: $ qemu-system-arm -machine vexpress-a9 \ -sd Fedora-17-armhfp-vexpress-mmcblk0.img \ -kernel vmlinuz-3.4.2-3.fc17.armv7hl \ -initrd

[Qemu-devel] [PATCH v2] exynos4210/mct: Avoid infinite loop on non incremental timers

2012-12-03 Thread Jean-Christophe DUBOIS
Check for a 0 distance value to avoid infinite loop when the expired FCR timer was not programed with auto-increment. With this change the behavior is coherent with the same type of code in the exynos4210_gfrc_restart() function in the same file. Linux seems to mostly use this timer with

[Qemu-devel] [PATCH 40/43] qxl: reload memslots after migration, when qxl is in UNDEFINED mode

2012-12-03 Thread Michael Roth
From: Yonit Halperin yhalp...@redhat.com The devram memslot stays active when qxl enters UNDEFINED mode (i.e, no primary surface). If migration has occurred while the device is in UNDEFINED stae, the memslots have to be reloaded at the destination. Fixes rhbz#874574 Signed-off-by: Yonit

  1   2   >