Re: [Qemu-devel] [PATCH 0/3] tcg-optimize with known-zero bits

2013-01-11 Thread Paolo Bonzini
Il 12/01/2013 00:42, Richard Henderson ha scritto: > This patch set is extracted from Paolo's target-i386 eflags2 > optimization branch: > > git://github.com/bonzini/qemu.git eflags2 > > I've cherry-picked 3 patches and rebased them vs master. I've > made a few trivial changes to the patches:

Re: [Qemu-devel] [PATCH] hw/pc.c: add ULL suffix in ioport80_read and ioportF0_read return value

2013-01-11 Thread Stefan Weil
Am 11.01.2013 17:41, schrieb Julien Grall: The commit c02e1eac887b1b0aee7361b1fcf889e7d47fed9d broke the compilation for i386. ULL need to be specify for uint64_t value. Signed-off-by: Julien Grall --- hw/pc.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pc.c

[Qemu-devel] [Bug 1098729] Re: qemu-user-static for armhf: segfault in threaded code

2013-01-11 Thread Erik de Castro Lopo
What's the best way to debug the qemu user space emulation? I read this: http://wiki.qemu.org/Documentation/Debugging but that seems to mainly refer to the qemu machine emulation. I added -ggdb to QEMU_CFLAGS in config-host.mak so it builds with debug symbols but gdb still doesn't provide an

[Qemu-devel] [Bug 1098729] Re: qemu-user-static for armhf: segfault in threaded code

2013-01-11 Thread Erik de Castro Lopo
Begining to think this is memory corruption because of the number of different failure modes. In addition to the crashes in the initial report I have also seen the following: qemu: uncaught target signal 4 (Illegal instruction) - core dumped More temporaries freed than allocated! TCG

[Qemu-devel] [Bug 1098729] Re: qemu-user-static for armhf: segfault in threaded code

2013-01-11 Thread Erik de Castro Lopo
I can also comple a purely static version of the test program in the armhf chroot using: gcc -Wall -static -pthread dotprod_mutex.c -o dotprod-mutex-static and then run it simply using: qemu-arm-static dotprod-mutex-static which fails just like it does in the chroot. -- You received t

[Qemu-devel] [Bug 1098729] [NEW] qemu-user-static for armhf: segfault in threaded code

2013-01-11 Thread Erik de Castro Lopo
Public bug reported: Currently running QEMU from git (fedf2de31023) and running the armhf version of qemu-user-static which I have renamed qemu-armhf-static to follow the naming convention used in Debian. The host systems is a Debian testing x86_64-linux and I have an Debian testing armhf chro

Re: [Qemu-devel] buildbot failure in qemu on default_i386_rhel61

2013-01-11 Thread Julien Grall
I sent a patch on the mailing-list one hour ago. http://www.mail-archive.com/qemu-devel@nongnu.org/msg148708.html On Fri, Jan 11, 2013 at 11:47 PM, Andreas Färber wrote: > Am 11.01.2013 23:06, schrieb q...@buildbot.b1-systems.de: >> The Buildbot has detected a new failure on builder default_i386

[Qemu-devel] [PATCH 2/3] optimize: track nonzero bits of registers

2013-01-11 Thread Richard Henderson
From: Paolo Bonzini Add a "mask" field to the tcg_temp_info struct. A bit that is zero in "mask" will always be zero in the corresponding temporary. Zero bits in the mask can be produced from moves of immediates, zero-extensions, ANDs with constants, shifts; they can then be be propagated by log

[Qemu-devel] [PATCH 1/3] optimize: only write to state when clearing optimizer data

2013-01-11 Thread Richard Henderson
From: Paolo Bonzini The next patch will add to the TCG optimizer a field that should be non-zero in the default case. Thus, replace the memset of the temps array with a loop. Only the state field has to be up-to-date, because others are not used except if the state is TCG_TEMP_COPY or TCG_TEMP_

Re: [Qemu-devel] buildbot failure in qemu on default_i386_rhel61

2013-01-11 Thread Andreas Färber
Am 11.01.2013 23:06, schrieb q...@buildbot.b1-systems.de: > The Buildbot has detected a new failure on builder default_i386_rhel61 while > building qemu. > Full details are available at: > http://buildbot.b1-systems.de/qemu/builders/default_i386_rhel61/builds/483 > > Buildbot URL: http://buildbo

[Qemu-devel] [PATCH 3/3] optimize: optimize using nonzero bits

2013-01-11 Thread Richard Henderson
From: Paolo Bonzini This adds two optimizations using the non-zero bit mask. In some cases involving shifts or ANDs the value can become zero, and can thus be optimized to a move of zero. Second, useless zero-extension or an AND with constant can be detected that would only zero bits that are a

[Qemu-devel] [PATCH 0/3] tcg-optimize with known-zero bits

2013-01-11 Thread Richard Henderson
This patch set is extracted from Paolo's target-i386 eflags2 optimization branch: git://github.com/bonzini/qemu.git eflags2 I've cherry-picked 3 patches and rebased them vs master. I've made a few trivial changes to the patches: * Extracting reset_all_temps as a function, * Fixing a few t

[Qemu-devel] host_alarm_handler

2013-01-11 Thread biswaranjan panda
Hi, I was making some changes to qemu and for a particular change I needed to stop the host_alarm_handler being called because of SIGALRM. To disable any SIGALRM being generated, I changed ev.sigev_notify = SIGEV_NONE; in *dynticks_start_timer *from ev.sigev_notify = SIGEV_SIGNAL. Yet I see th

[Qemu-devel] [PATCH] tcg-i386: use LEA for 3-operand 64-bit addition

2013-01-11 Thread Richard Henderson
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index e083874..7aec304 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i386

[Qemu-devel] [PATCH] hw/pc.c: add ULL suffix in ioport80_read and ioportF0_read return value

2013-01-11 Thread Julien Grall
The commit c02e1eac887b1b0aee7361b1fcf889e7d47fed9d broke the compilation for i386. ULL need to be specify for uint64_t value. Signed-off-by: Julien Grall --- hw/pc.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index dfa3144..ba1f19d 100644 --- a/

[Qemu-devel] buildbot failure in qemu on default_i386_rhel61

2013-01-11 Thread qemu
The Buildbot has detected a new failure on builder default_i386_rhel61 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_i386_rhel61/builds/483 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel61_32bit

Re: [Qemu-devel] [RFC][PATCH v2] add realtime option

2013-01-11 Thread Satoru Moriya
Could anybody review it? On 12/21/2012 05:46 PM, Satoru Moriya wrote: > Changelog > v1 -> v2 > - add RFC tag again > - change semantics as follows >- set event threads' priority to maxprio >- set vcpu threads' priority to maxprio - 1 > - isolate all the posix stuff and put them into os_

Re: [Qemu-devel] [libvirt] [PATCH 06/10] vl.c: handle invalid NUMA CPU ranges properly

2013-01-11 Thread Eric Blake
On 01/11/2013 11:15 AM, Eduardo Habkost wrote: > Add checks for the following cases: > > * Empty string: will be ignored and won't set any CPU bitmap, > parser won't abort. > * Missing end value after "-": parser will abort. > * Extra characters after a valid CPU range: parser will abort. > * "N

Re: [Qemu-devel] [libvirt] [PATCH 03/10] vl.c: Isolate code specific to "-numa node" option type

2013-01-11 Thread Eduardo Habkost
On Fri, Jan 11, 2013 at 02:06:05PM -0700, Eric Blake wrote: > On 01/11/2013 11:15 AM, Eduardo Habkost wrote: > > Extract the code that's specific for the "node" -numa option type (the > > only one, today) to a separate function. > > > > The extracted code will eventually become a function specific

Re: [Qemu-devel] [libvirt] [PATCH 03/10] vl.c: Isolate code specific to "-numa node" option type

2013-01-11 Thread Eric Blake
On 01/11/2013 11:15 AM, Eduardo Habkost wrote: > Extract the code that's specific for the "node" -numa option type (the > only one, today) to a separate function. > > The extracted code will eventually become a function specific for a > "numa-node" config section, independent from the numa_add() c

Re: [Qemu-devel] [PATCH] Add option to slow down qemu

2013-01-11 Thread Stefan Weil
Am 11.01.2013 14:40, schrieb Wolfgang Mauerer: For slow targets and fast hosts, the emulation may be faster than the actual hardware, which can be undesirable for various reasons. Add a run-time option to slow down the emulation by sleeping in the CPU emulation. Signed-off-by: Wolfgang Mauerer -

[Qemu-devel] [PATCH] pc87312: Replace register_ioport_*() with MemoryRegion

2013-01-11 Thread Andreas Färber
Prepare an instance_init function for the MemoryRegion init. Signed-off-by: Andreas Färber Cc: Hervé Poussineau --- hw/pc87312.c | 26 ++ hw/pc87312.h |2 ++ 2 Dateien geändert, 24 Zeilen hinzugefügt(+), 4 Zeilen entfernt(-) diff --git a/hw/pc87312.c b/hw/pc87312.

Re: [Qemu-devel] [RFC 3/3] virtio-balloon: add auto-ballooning support

2013-01-11 Thread Amit Shah
Hi Luiz, On (Tue) 18 Dec 2012 [18:16:55], Luiz Capitulino wrote: > The auto-ballooning feature automatically performs balloon inflate > or deflate based on host and guest memory pressure. This can help to > avoid swapping or worse in both, host and guest. > > Auto-ballooning has a host and a gues

Re: [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes.

2013-01-11 Thread Michael Tokarev
12.01.2013 00:12, Michael Tokarev wrote: Makefile: install the "acpi-dsdt.aml" and "q35-acpi-dsdt.aml" blobs too What these *.aml things are needed for? How they're being used? Um, found them, n/m: hw/pc_q35.c:pc_acpi_init("q35-acpi-dsdt.aml"); hw/pc_piix.c:pc_acpi_init("acpi

Re: [Qemu-devel] [PATCH v5 1/2] Add TEWS TPCI200 IndustryPack emulation

2013-01-11 Thread Andreas Färber
Am 11.01.2013 18:25, schrieb Alberto Garcia: > The TPCI200 is a PCI board that supports up to 4 IndustryPack modules. > > A new bus type called 'IndustryPack' has been created so any > compatible module can be attached to this board. > > Signed-off-by: Alberto Garcia Reviewed-by: Andreas Färber

Re: [Qemu-devel] [PATCH] Realview/Versatile: Export LED state

2013-01-11 Thread Luiz Capitulino
On Fri, 11 Jan 2013 16:44:49 +0100 Wolfgang Mauerer wrote: > On 11/01/13 16:23, Andreas Färber wrote: > > Am 11.01.2013 16:00, schrieb Peter Maydell: > >> On 11 January 2013 13:42, Wolfgang Mauerer > >> wrote: > >>> The configuration register for the onboard LEDs is > >>> emulated, but the stat

Re: [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes.

2013-01-11 Thread Michael Tokarev
11.01.2013 12:52, Gerd Hoffmann wrote: Hi, The biggest change is the machine type renaming patch. Laszlo Ersek (1): Makefile: install the "acpi-dsdt.aml" and "q35-acpi-dsdt.aml" blobs too What these *.aml things are needed for? How they're being used? Thanks, /mjt

Re: [Qemu-devel] [PATCH V5 4/6] HMP: filter out space before check of sub-command

2013-01-11 Thread Luiz Capitulino
On Fri, 11 Jan 2013 17:14:03 +0800 Wenchao Xia wrote: > This fix the case when user input "@command ". Original > it will return NULL for monitor_parse_command(), now > it will return the @command related instance. > > Signed-off-by: Wenchao Xia > --- > monitor.c |3 +++ > 1 files change

Re: [Qemu-devel] [PATCH 1/2] VFIO-AER: Vfio-pci driver changes for supporting AER

2013-01-11 Thread Marcelo Tosatti
On Fri, Jan 11, 2013 at 08:46:35AM -0700, Alex Williamson wrote: > On Fri, 2013-01-11 at 08:45 +, Pandarathil, Vijaymohan R wrote: > > > > > -Original Message- > > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > > Sent: Wednesday, January 09, 2013 11:05 AM > > > To: Pan

[Qemu-devel] [PATCH 07/10] vl.c: numa_add_node(): Validate nodeid before using it

2013-01-11 Thread Eduardo Habkost
Without this check, qemu-kvm will corrupt memory if a too-large nodeid is provided in the command-line. e.g.: -numa node,mem=...,cpus=...,nodeid=65 Signed-off-by: Eduardo Habkost --- vl.c | 5 + 1 file changed, 5 insertions(+) diff --git a/vl.c b/vl.c index 19010fa..31175f6 100644 --- a/

[Qemu-devel] [PATCH 05/10] vl.c: Extract -numa "cpus" parsing to separate function

2013-01-11 Thread Eduardo Habkost
This will make it easier to refactor that code later. Signed-off-by: Eduardo Habkost --- vl.c | 40 ++-- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/vl.c b/vl.c index 2c3bbb9..03a826e 100644 --- a/vl.c +++ b/vl.c @@ -1052,15 +1052,33 @@ cha

[Qemu-devel] [RFC 10/10] vl.c: Handle legacy "-numa node, cpus=A, B, C, D" format

2013-01-11 Thread Eduardo Habkost
As libvirt already uses this format and expects it to work, add a small hack to the legacy -numa option parsing code to make the "cpus=A,B,C,D" format work. Signed-off-by: Eduardo Habkost --- vl.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/vl.c b/vl.c index 14bf9b6..cf30d44

[Qemu-devel] [PATCH 06/10] vl.c: handle invalid NUMA CPU ranges properly

2013-01-11 Thread Eduardo Habkost
Add checks for the following cases: * Empty string: will be ignored and won't set any CPU bitmap, parser won't abort. * Missing end value after "-": parser will abort. * Extra characters after a valid CPU range: parser will abort. * "N-M" string where M < N: parser will abort. Signed-off-by: Ed

[Qemu-devel] [PATCH 08/10] vl.c: Support multiple CPU ranges on -numa option

2013-01-11 Thread Eduardo Habkost
This allows "," or ";" to be used a separator between each CPU range. Note that commas inside key=value command-line options have to be escaped using ",,", so the command-line will look like: -numa node,cpus=A,,B,,C,,D or: -numa node,cpus=A;B;C;D Note that the following format, currently us

[Qemu-devel] [PATCH 01/10] vl.c: Fix off-by-one bug when handling "-numa node" argument

2013-01-11 Thread Eduardo Habkost
The numa_add() code was unconditionally adding 1 to the get_opt_name() return value, making it point after the end of the string if no ',' separator is present. Example of weird behavior caused by the bug: $ qemu-img create -f qcow2 this-file-image-has,cpus=5,mem=1000,in-its-name.qcow2 5G Fo

[Qemu-devel] [PATCH 00/10] -numa option parsing fixes & improvements

2013-01-11 Thread Eduardo Habkost
This series contains the following: * Patches 1-7 are multiple bug fixes to the current code * Patch 8 introduce a feature that libvirt requires since a long time, and even tries to use it today (in a way that doesn't work, using the "-numa node,cpus=1,2,3,4" format): having non-contiguous

Re: [Qemu-devel] [PATCH 02/20] add hierarchical bitmap data type and test cases

2013-01-11 Thread Stefan Hajnoczi
On Wed, Dec 12, 2012 at 02:46:21PM +0100, Paolo Bonzini wrote: > diff --git a/hbitmap.c b/hbitmap.c > new file mode 100644 > index 000..ae59f39 > --- /dev/null > +++ b/hbitmap.c > @@ -0,0 +1,400 @@ > +/* > + * Hierarchical Bitmap Data Type > + * > + * Copyright Red Hat, Inc., 2012 > + * > + * A

Re: [Qemu-devel] getting rid of coroutine-gthread?

2013-01-11 Thread Andreas Färber
Am 11.01.2013 19:11, schrieb Paolo Bonzini: > Brad and Peter, > > as far as I know OpenBSD and Linux/ARM were the main users of > coroutine-gthread. Do you think we could dump it and rely on > coroutine-sigaltstack only? The differences in signal handling of the > gthread implementation always w

[Qemu-devel] [PATCH 02/10] vl.c: Abort on unknown -numa option type

2013-01-11 Thread Eduardo Habkost
Instead of silently ignoring them, abort in case an invalid -numa option is provided. Signed-off-by: Eduardo Habkost --- vl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vl.c b/vl.c index 93fde36..042cc7f 100644 --- a/vl.c +++ b/vl.c @@ -1101,6 +1101,9 @@ static void numa_add(const ch

[Qemu-devel] [PATCH 04/10] vl.c: Check for NUMA node limit inside numa_node_add()

2013-01-11 Thread Eduardo Habkost
Instead of checking the limit before calling numa_add(), check the limit only when we already know we're going to add a new node. Signed-off-by: Eduardo Habkost --- vl.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vl.c b/vl.c index 94cc6fd..2c3bbb9 100644 --- a/v

[Qemu-devel] [PATCH 03/10] vl.c: Isolate code specific to "-numa node" option type

2013-01-11 Thread Eduardo Habkost
Extract the code that's specific for the "node" -numa option type (the only one, today) to a separate function. The extracted code will eventually become a function specific for a "numa-node" config section, independent from the numa_add() code. Signed-off-by: Eduardo Habkost --- vl.c | 75

[Qemu-devel] [RFC 09/10] vl.c: Introduce QemuOpts-friendly "-numa-node" config option

2013-01-11 Thread Eduardo Habkost
This introduces both a "-numa-node" command-line option that is parsed using a pure qemu_opts_parse() call, and a "numa-node" config file section. As the -numa option has a non-standard syntax, parse it manually and translate it "numa-node" config options. Signed-off-by: Eduardo Habkost --- qem

[Qemu-devel] getting rid of coroutine-gthread?

2013-01-11 Thread Paolo Bonzini
Brad and Peter, as far as I know OpenBSD and Linux/ARM were the main users of coroutine-gthread. Do you think we could dump it and rely on coroutine-sigaltstack only? The differences in signal handling of the gthread implementation always worried me. What versions of OpenBSD would we have to dr

Re: [Qemu-devel] [PATCH 6/6] qemu-ga: Handle errors uniformely in ga_channel_open()

2013-01-11 Thread mdroth
On Fri, Jan 11, 2013 at 11:25:02AM +0100, Markus Armbruster wrote: > We detect errors in seven places. One reports with g_error(), which Do you mean "in several places"? I can fix this in tree. > calls abort(), the others report with g_critical(). Three of them > exit(), three return false. >

Re: [Qemu-devel] [PATCH 5/6] qemu-ga: Plug fd leak on ga_channel_open() error paths

2013-01-11 Thread mdroth
On Fri, Jan 11, 2013 at 11:25:01AM +0100, Markus Armbruster wrote: > Spotted by Coverity. > > Signed-off-by: Markus Armbruster Reviewed-by: Michael Roth > --- > qga/channel-posix.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/qga/channel-posix.c b/qga/channel-posix.c > index 5579

Re: [Qemu-devel] [PATCH 1/6] qemu-ga: Document intentional fall through in channel_event_cb()

2013-01-11 Thread mdroth
On Fri, Jan 11, 2013 at 11:24:57AM +0100, Markus Armbruster wrote: > For clarity, and to hush up Coverity. > > Signed-off-by: Markus Armbruster Reviewed-by: Michael Roth > --- > qga/main.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/qga/main.c b/qga/main.c > index a9b968c..47a6b

Re: [Qemu-devel] [PATCH 3/6] qemu-ga: Plug file descriptor leak on ga_open_pidfile() error path

2013-01-11 Thread mdroth
On Fri, Jan 11, 2013 at 11:24:59AM +0100, Markus Armbruster wrote: > Spotted by Coverity. Also document why we keep it open on success. > > Signed-off-by: Markus Armbruster Reviewed-by: Michael Roth > --- > qga/main.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/qga/main.c b/q

Re: [Qemu-devel] [PATCH 4/6] qemu-ga: Plug fd leak on ga_channel_listen_accept() error path

2013-01-11 Thread mdroth
On Fri, Jan 11, 2013 at 11:25:00AM +0100, Markus Armbruster wrote: > Spotted by Coverity. > > Signed-off-by: Markus Armbruster Reviewed-by: Michael Roth > --- > qga/channel-posix.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/qga/channel-posix.c b/qga/channel-posix.c > index d4fd

Re: [Qemu-devel] [PATCH 2/6] qemu-ga: Drop pointless lseek() from ga_open_pidfile()

2013-01-11 Thread mdroth
On Fri, Jan 11, 2013 at 11:24:58AM +0100, Markus Armbruster wrote: > After open(), the file offset is already zero, and neither lockf() nor > ftruncate() change it. > > Signed-off-by: Markus Armbruster Reviewed-by: Michael Roth > --- > qga/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 de

Re: [Qemu-devel] [PATCH 0/2] virtio-scsi: abort in-flight I/O when the device is reset

2013-01-11 Thread Anthony Liguori
Thanks, applied. Regards, Anthony Liguori

Re: [Qemu-devel] [RFC PATCH 0/2] make mac programming for virtio net more robust

2013-01-11 Thread John Fastabend
On 1/10/2013 11:46 PM, Michael S. Tsirkin wrote: On Fri, Jan 11, 2013 at 12:53:07PM +1030, Rusty Russell wrote: "Michael S. Tsirkin" writes: On Thu, Jan 10, 2013 at 10:45:39PM +0800, ak...@redhat.com wrote: From: Amos Kong Currenly mac is programmed byte by byte. This means that we have an

Re: [Qemu-devel] [PULL 0/6] Trivial patches for 5 to 11 January 2013

2013-01-11 Thread Anthony Liguori
Pulled, thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH v3 00/10] chardev hotplug patch series

2013-01-11 Thread Eric Blake
On 01/11/2013 04:20 AM, Gerd Hoffmann wrote: > Hi, > > Next chardev hotplug round. Minor API tweak (s/delay/nodelay/ for > ChardevSocket). More documentation improvements. Added sanity checks. For 1-8 and 10, Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Lib

Re: [Qemu-devel] [PATCH v3 09/10] chardev: add socket chardev support to chardev-add (qmp)

2013-01-11 Thread Eric Blake
On 01/11/2013 04:20 AM, Gerd Hoffmann wrote: > qemu_chr_open_socket is splitted into two functions. All initialization > after creating the socket file handler is splitted away into the new You still haven't incorporated my fix of s/splitted/split/g that I raised against both v1 and v2. > @@ -24

Re: [Qemu-devel] [PATCH 1/2] qdev: add qbus_reset_all

2013-01-11 Thread Andreas Färber
Am 10.01.2013 19:34, schrieb Andreas Färber: > Am 10.01.2013 15:49, schrieb Paolo Bonzini: >> Signed-off-by: Paolo Bonzini >> --- >> hw/qdev-core.h | 12 >> hw/qdev.c | 7 ++- >> 2 files changed, 18 insertions(+), 1 deletion(-) >> >> diff --git a/hw/qdev-core.h b/hw/qdev-co

[Qemu-devel] [PATCH V2] hd-geometry.c: Integrate HDIO_GETGEO in guessing

2013-01-11 Thread Einar Lueck
Hi, here is a reworked version. V1 -> V2: * removed useless code movements * corrected terminology into logical and physical CHS and structured/layered functions accordingly Einar Lueck (1): hd-geometry.c: Integrate HDIO_GETGEO in guessing hw/hd-geometry.c | 45 +

[Qemu-devel] [PATCH V2] hd-geometry.c: Integrate HDIO_GETGEO in guessing

2013-01-11 Thread Einar Lueck
This patch extends the function hd_geometry_guess. If no geo could be guessed via guess_disk_lchs, a new function called guess_disk_pchs is called. The latter utilizes HDIO_GET_GEO ioctl to ask the underlying disk for geometry. If this is not successful (e.g. image files) geometry is derived from t

Re: [Qemu-devel] [PATCH 2/3] qga: add guest-get-time command

2013-01-11 Thread mdroth
On Fri, Jan 11, 2013 at 03:37:26PM +0800, Lei Li wrote: > On 01/08/2013 06:04 AM, Eric Blake wrote: > >On 01/06/2013 03:06 AM, Lei Li wrote: > >>Signed-off-by: Lei Li > >>--- > >> qga/commands-posix.c | 12 > >> qga/qapi-schema.json | 17 + > >> 2 files changed, 2

[Qemu-devel] [PATCH v5 2/2] Add GE IP-Octal 232 IndustryPack emulation

2013-01-11 Thread Alberto Garcia
The GE IP-Octal 232 is an IndustryPack module that implements eight RS-232 serial ports, each one of which can be redirected to a character device in the host. Signed-off-by: Alberto Garcia --- hw/Makefile.objs |2 +- hw/ipoctal232.c | 619 ++

[Qemu-devel] [PATCH v5 1/2] Add TEWS TPCI200 IndustryPack emulation

2013-01-11 Thread Alberto Garcia
The TPCI200 is a PCI board that supports up to 4 IndustryPack modules. A new bus type called 'IndustryPack' has been created so any compatible module can be attached to this board. Signed-off-by: Alberto Garcia --- default-configs/pci.mak |1 + hw/Makefile.objs|3 + hw/ipack.c

[Qemu-devel] [PATCH v5 0/2] Add TPCI200 and IP-Octal 232 IndustryPack emulation

2013-01-11 Thread Alberto Garcia
I updated the patches again, here are the changes from v4: * Replaced DO_UPCAST() with checked casts. * Added ipack_bus_new_inplace(). The fields of IPackBus are now private. * Renamed ipoctal.c to ipoctal232.c (*). * Replaced qdev->parent_bus with qdev_get_parent_bus(qdev). * Replaced bus->qbus w

[Qemu-devel] [PATCH 1/2] rtc-test: always set register B in its entirety

2013-01-11 Thread Paolo Bonzini
Eliminate dependencies between one test and the others. Signed-off-by: Paolo Bonzini --- tests/rtc-test.c | 36 +--- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/tests/rtc-test.c b/tests/rtc-test.c index 02edbf5..7b39831 100644 --- a/tests/rtc-te

[Qemu-devel] [PATCH 2/2] rtc-test: add testcases for alarms in 12hour mode

2013-01-11 Thread Paolo Bonzini
Trying (unsuccessfully) to break the device model as mentioned in https://bugs.launchpad.net/qemu/+bug/1090558. At least if someone tries to fix that, it won't break what works... Signed-off-by: Paolo Bonzini --- tests/rtc-test.c | 202 ++- 1

[Qemu-devel] [PATCH 0/2] Improve rtc-test coverage

2013-01-11 Thread Paolo Bonzini
Trying (unsuccessfully) to break the code and reproduce the effects of https://bugs.launchpad.net/qemu/+bug/1090558... Well, more tests never hurt... Paolo Bonzini (2): rtc-test: always set register B in its entirety rtc-test: add testcases for alarms in 12hour mode tests/rtc-test.c | 238 +

Re: [Qemu-devel] Fix the glib deprecated APIs

2013-01-11 Thread Paolo Bonzini
Il 11/01/2013 17:10, Ramesh G ha scritto: > > Hi, > > I got a couple of below compilation errors while compiling with glib > > 2.32. > > $ make > CC../trace/simple.o > ../trace/simple.c: In function ‘trace_thread_create’: > ../trace/simple.c:407:5: error: ‘g_thread_create’ is deprecated

Re: [Qemu-devel] Fix the glib deprecated APIs

2013-01-11 Thread Peter Maydell
On 11 January 2013 16:10, Ramesh G wrote: > I got a couple of below compilation errors while compiling with glib > 2.32. Stefan: see also commit d1b719e98 which fixed these warnings in coroutine-gthread.c. -- PMM

Re: [Qemu-devel] [PATCH] Make all static TypeInfos const

2013-01-11 Thread Anthony Liguori
Thanks, applied. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH v3 0/3] dataplane: misaligned buffers support for Windows guests

2013-01-11 Thread Kevin Wolf
Am 11.01.2013 16:41, schrieb Stefan Hajnoczi: > Windows guests do not work with x-data-plane=on because misaligned request > support is missing in hw/dataplane/virtio-blk.c. This series adds a bounce > buffer when the request is misaligned. Windows guests now work with > x-data-plane=on. > > v3:

Re: [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes.

2013-01-11 Thread Anthony Liguori
Pulled, thanks. N.B. This note may be extraneous because the pull request was sent by a version of git older than 1.7.9 making the pull request ambigious. Please consider upgrading to a newer version of git. Regards, Anthony Liguori

Re: [Qemu-devel] [PULL v2] PReP patch queue 2013-01-11

2013-01-11 Thread Anthony Liguori
Pulled, thanks. Regards, Anthony Liguori

[Qemu-devel] [Bug 1090558] Re: hw/mc146818: error reading RTC_HOURS_ALARM

2013-01-11 Thread Paolo Bonzini
The problem is obviously there, but I tried pretty hard to make it fail and couldn't so it seems latent. If you can, please provide a patch to tests/rtc-test.c that shows the bug. ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member

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

2013-01-11 Thread Andreas Färber
This is lacking a proper description of the slight refactoring. Am 10.12.2012 03:22, schrieb liguang: > Signed-off-by: liguang > --- > target-i386/helper.c | 74 +--- > target-i386/machine.c |5 ++- > target-i386/misc_helper.c |4 +- > t

Re: [Qemu-devel] libqos - was: [PATCH 3/3] dataplane: handle misaligned virtio-blk requests

2013-01-11 Thread Paolo Bonzini
Il 11/01/2013 16:44, Andreas Färber ha scritto: >>> >> Makes me wonder if qtest cases might be doable... >> > >> > Anthony, what's going on with libqos? :) > I posted a rebased version of I2C libqos support after Anthony approved > the pre-header-reorg version and am hoping it will get applied now

[Qemu-devel] [PATCH v3 2/3] dataplane: extract virtio-blk read/write processing into do_rdwr_cmd()

2013-01-11 Thread Stefan Hajnoczi
Extract code for read/write command processing into do_rdwr_cmd(). This brings together pieces that are spread across process_request(). The real motivation is to set the stage for handling misaligned requests, which the next patch tackles. Signed-off-by: Stefan Hajnoczi --- hw/dataplane/virti

Re: [Qemu-devel] [PATCH v4 2/3] target-i386:define hw_{global, local}breakpoint_enabled function

2013-01-11 Thread Andreas Färber
Am 10.12.2012 03:22, schrieb liguang: > Signed-off-by: liguang > --- > target-i386/cpu.h | 15 +-- > 1 files changed, 13 insertions(+), 2 deletions(-) > > diff --git a/target-i386/cpu.h b/target-i386/cpu.h > index 29245d1..c69f81f 100644 > --- a/target-i386/cpu.h > +++ b/target-i38

[Qemu-devel] [PATCH v3 1/3] block: make qiov_is_aligned() public

2013-01-11 Thread Stefan Hajnoczi
The qiov_is_aligned() function checks whether a QEMUIOVector meets a BlockDriverState's alignment requirements. This is needed by virtio-blk-data-plane so: 1. Move the function from block/raw-posix.c to block/block.c. 2. Make it public in block/block.h. 3. Rename to bdrv_qiov_is_aligned(). 4. Cha

[Qemu-devel] [PATCH v3 0/3] dataplane: misaligned buffers support for Windows guests

2013-01-11 Thread Stefan Hajnoczi
Windows guests do not work with x-data-plane=on because misaligned request support is missing in hw/dataplane/virtio-blk.c. This series adds a bounce buffer when the request is misaligned. Windows guests now work with x-data-plane=on. v3: * Use iov/iov_cnt before modifying them in do_rdwr_cmd()

[Qemu-devel] [PATCH 2/2] target-arm: Fix SWI (SVC) instruction in M profile.

2013-01-11 Thread Peter Maydell
From: "alex_rozen...@mentor.com" When do_interrupt_v7m is called with EXCP_SWI, the PC already points to the next instruction. Don't modify it here. Signed-off-by: Alex Rozenman Signed-off-by: Peter Maydell --- target-arm/helper.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[Qemu-devel] [PATCH v3 3/3] dataplane: handle misaligned virtio-blk requests

2013-01-11 Thread Stefan Hajnoczi
O_DIRECT on Linux has alignment requirements on I/O buffers and misaligned requests result in -EINVAL. The Linux virtio_blk guest driver usually submits aligned requests so I forgot to handle misaligned requests. It turns out that virtio-win guest drivers submit misaligned requests. Handle them u

[Qemu-devel] Fix the glib deprecated APIs

2013-01-11 Thread Ramesh G
Hi, I got a couple of below compilation errors while compiling with glib > 2.32. $ make CC../trace/simple.o ../trace/simple.c: In function ‘trace_thread_create’: ../trace/simple.c:407:5: error: ‘g_thread_create’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:100)

Re: [Qemu-devel] [PATCH v4 1/3] target-i386:define name of breakpoint bit in dr7

2013-01-11 Thread Andreas Färber
Am 10.12.2012 03:22, schrieb liguang: > Signed-off-by: liguang For a patch series consisting of more than 1 patch, please use a cover letter (e.g., --cover-letter) that details the change history of the versions. That also facilitates commenting on the series vs. a single patch. > --- > target-

Re: [Qemu-devel] [PATCH 0/6] Simple qemu-ga fixes and cleanups

2013-01-11 Thread Eric Blake
On 01/11/2013 03:24 AM, Markus Armbruster wrote: > Markus Armbruster (6): > qemu-ga: Document intentional fall through in channel_event_cb() > qemu-ga: Drop pointless lseek() from ga_open_pidfile() > qemu-ga: Plug file descriptor leak on ga_open_pidfile() error path > qemu-ga: Plug fd leak

Re: [Qemu-devel] [PATCH v4 1/3] target-i386:define name of breakpoint bit in dr7

2013-01-11 Thread Andreas Färber
Hi Guang, Am 11.01.2013 02:47, schrieb li guang: > can these patches get an ack from you? I'm waiting on feedback from the previous reviewers... CC'ing. > or they were obsoleted? No, I don't spot any need to rebase. However, patch 3/3 is tab-damaged, please run scripts/checkpatch.pl. That can b

Re: [Qemu-devel] [PATCH v2 3/3] dataplane: handle misaligned virtio-blk requests

2013-01-11 Thread Kevin Wolf
Am 11.01.2013 15:40, schrieb Stefan Hajnoczi: > On Fri, Jan 11, 2013 at 02:28:17PM +0100, Paolo Bonzini wrote: >> Il 11/01/2013 13:34, Stefan Hajnoczi ha scritto: >>> +iov = &bounce_iov; >>> +iov_cnt = 1; >>> + >>> +if (read) { >>> +/* Need to copy back from boun

Re: [Qemu-devel] [PATCH 2/2] QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-01-11 Thread Alex Williamson
On Fri, 2013-01-11 at 08:53 +, Pandarathil, Vijaymohan R wrote: > > > -Original Message- > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Wednesday, January 09, 2013 10:08 AM > > To: Pandarathil, Vijaymohan R > > Cc: Bjorn Helgaas; Gleb Natapov; k...@vger.kernel.

Re: [Qemu-devel] [PATCH 1/2] VFIO-AER: Vfio-pci driver changes for supporting AER

2013-01-11 Thread Alex Williamson
On Fri, 2013-01-11 at 08:45 +, Pandarathil, Vijaymohan R wrote: > > > -Original Message- > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Wednesday, January 09, 2013 11:05 AM > > To: Pandarathil, Vijaymohan R > > Cc: Bjorn Helgaas; Gleb Natapov; k...@vger.kernel.

Re: [Qemu-devel] [PATCH KVM v2 1/4] KVM: fix i8254 IRQ0 to be normally high

2013-01-11 Thread Gleb Natapov
On Thu, Jan 10, 2013 at 11:40:07PM -0700, Matthew Ogilvie wrote: > On Tue, Jan 08, 2013 at 09:31:19AM +0200, Gleb Natapov wrote: > > On Mon, Jan 07, 2013 at 06:17:22PM -0600, mmogi...@miniinfo.net wrote: > > > On Mon, 7 Jan 2013 11:39:18 +0200, Gleb Natapov wrote: > > > > On Wed, Dec 26, 2012 at 1

[Qemu-devel] libqos - was: [PATCH 3/3] dataplane: handle misaligned virtio-blk requests

2013-01-11 Thread Andreas Färber
Am 11.01.2013 14:27, schrieb Paolo Bonzini: > Il 11/01/2013 13:39, Kevin Wolf ha scritto: >> Makes me wonder if qtest cases might be doable... > > Anthony, what's going on with libqos? :) I posted a rebased version of I2C libqos support after Anthony approved the pre-header-reorg version and am h

Re: [Qemu-devel] [PATCH V8 3/5] Adding common definitions for VMWARE devices

2013-01-11 Thread Stefan Hajnoczi
On Fri, Jan 11, 2013 at 03:35:29PM +0200, Dmitry Fleytman wrote: > Stefan, > > We have vmxnet2 implementation ready for submission as well, > so this code is not dead :) Please add it when it's needed. Stefan

Re: [Qemu-devel] [PATCH] Realview/Versatile: Export LED state

2013-01-11 Thread Wolfgang Mauerer
Hello, On 11/01/13 15:58, Andreas Färber wrote: >> @@ -386,6 +406,10 @@ static int arm_sysctl_init(SysBusDevice *dev) >> > { >> > arm_sysctl_state *s = FROM_SYSBUS(arm_sysctl_state, dev); >> > >> > +s->display = qemu_chr_new("leds0", "chardev:leds", NULL); >> > +if (s->display) { >

Re: [Qemu-devel] [PATCH] Realview/Versatile: Export LED state

2013-01-11 Thread Wolfgang Mauerer
On 11/01/13 16:23, Andreas Färber wrote: > Am 11.01.2013 16:00, schrieb Peter Maydell: >> On 11 January 2013 13:42, Wolfgang Mauerer >> wrote: >>> The configuration register for the onboard LEDs is >>> emulated, but the state is not exported, which makes >>> the feature not particularly useful. C

Re: [Qemu-devel] [PATCH 1/3] qga: add support to get host time

2013-01-11 Thread Eric Blake
On 01/11/2013 12:18 AM, Lei Li wrote: > > For this version, it's a one-hour offset represented as:±[hh]. > Negative values are west, andpositive values are east of UTC. Won't work. There are timezones with a half-hour offset. You need to express offset at least in terms of minutes, not just hou

[Qemu-devel] [PATCH 1/2] target-arm: use type_register() instead of type_register_static()

2013-01-11 Thread Peter Maydell
From: Eduardo Habkost The type_register_static() interface is documented as: type_register_static: @info: The #TypeInfo of the new type. @info and all of the strings it points to should exist for the life time that the type is registered. But cpu_register() uses a stack variable for th

[Qemu-devel] [PULL 0/2] target-arm queue

2013-01-11 Thread Peter Maydell
Small patchqueue, just flushing the target-arm queue before softfreeze. Please pull. -- PMM The following changes since commit a6308bc2224db238e72c570482717b68246a7ce0: Merge remote-tracking branch 'kraxel/build.1' into staging (2013-01-10 13:26:31 -0600) are available in the git repository

Re: [Qemu-devel] [PATCH v2 3/3] dataplane: handle misaligned virtio-blk requests

2013-01-11 Thread Stefan Hajnoczi
On Fri, Jan 11, 2013 at 02:28:17PM +0100, Paolo Bonzini wrote: > Il 11/01/2013 13:34, Stefan Hajnoczi ha scritto: > > +iov = &bounce_iov; > > +iov_cnt = 1; > > + > > +if (read) { > > +/* Need to copy back from bounce buffer on completion */ > > +read_

Re: [Qemu-devel] [PATCH] Realview/Versatile: Export LED state

2013-01-11 Thread Andreas Färber
Am 11.01.2013 16:00, schrieb Peter Maydell: > On 11 January 2013 13:42, Wolfgang Mauerer > wrote: >> The configuration register for the onboard LEDs is >> emulated, but the state is not exported, which makes >> the feature not particularly useful. Create a character >> device to make status chang

Re: [Qemu-devel] [PATCH 6/6] hw/pc.c: Fix converting of ioport_register* to MemoryRegion

2013-01-11 Thread Andreas Färber
Am 11.01.2013 15:53, schrieb Julien Grall: > On 01/11/2013 11:50 AM, Andreas Färber wrote: >> Am 11.01.2013 10:18, schrieb Stefan Hajnoczi: >>> @@ -103,6 +103,11 @@ static void ioport80_write(void *opaque, hwaddr addr, >>> uint64_t data, >>> { >>> } >>> >>> +static uint64_t ioport80_read(void

Re: [Qemu-devel] [PATCH 6/6] hw/pc.c: Fix converting of ioport_register* to MemoryRegion

2013-01-11 Thread Julien Grall
From: Julien Grall The commit 258711 introduced MemoryRegion to replace ioport_region* for ioport 80h and F0h. A MemoryRegion needs to have both read and write callback otherwise a segfault will occur when an access is made. The previous behaviour of this both ioport is to return 0xf

Re: [Qemu-devel] [PATCH] Realview/Versatile: Export LED state

2013-01-11 Thread Peter Maydell
On 11 January 2013 13:42, Wolfgang Mauerer wrote: > The configuration register for the onboard LEDs is > emulated, but the state is not exported, which makes > the feature not particularly useful. Create a character > device to make status changes accessible to the host. > > For example, use the c

Re: [Qemu-devel] [PATCH] Realview/Versatile: Export LED state

2013-01-11 Thread Andreas Färber
Hello, Am 11.01.2013 14:42, schrieb Wolfgang Mauerer: > The configuration register for the onboard LEDs is > emulated, but the state is not exported, which makes > the feature not particularly useful. Create a character > device to make status changes accessible to the host. > > For example, use

  1   2   3   >