Re: [Qemu-devel] [PATCH 00/17] onenand, omap_gpmc fixes, features

2011-08-26 Thread Edgar E. Iglesias
On Thu, Aug 25, 2011 at 09:04:54PM +0100, Peter Maydell wrote: > This patchset is primarily features and bugfixes for the > omap_gpmc device from the Meego tree. > > We start by adding a new sysbus function to get the MemoryRegion* > for a sysbus MMIO region. This was discussed in > http://www.ma

[Qemu-devel] [Bug 393430] Re: kvm: use PulseAudio instead of ALSA

2011-08-26 Thread Dave Walker
The Debian big referenced suggested using ALSA over OSS, this bug is related to favouring PA over ALSA. The Debian issue was resolved with: --- kvm-79+dfsg/debian/rules +++ kvm-82+dfsg/debian/rules @@ -141,7 +141,9 @@ config.status: configure dh_testdir # Add here commands to con

Re: [Qemu-devel] [PATCH] hw: Add test device for unittests execution

2011-08-26 Thread Jan Kiszka
On 2011-08-26 22:04, Lucas Meneghel Rodrigues wrote: > Add a test device which supports the kvmctl ioports, > for running the KVM test suite. This is a straight > port from the latest version of the test device present > on qemu-kvm, using the APIs currently in use by qemu. > > With this we aim fo

Re: [Qemu-devel] Register usage statistics?

2011-08-26 Thread Benjamin Ylvisaker
On Fri, 26 Aug 2011 19:35 +0200, "Lluís" wrote: > Benjamin Ylvisaker writes: > > > I am working on a project for which I'd like to gather statistics > > about register usage. (For example, distributions of degree-of-use > > and dynamic lifetimes of register-values.) Is QEMU a good tool for > >

[Qemu-devel] Preliminary results of unit testing on qemu.git

2011-08-26 Thread Lucas Meneghel Rodrigues
Hi folks, I've recently sent a patch porting the -testdev device from qemu-kvm.git to qemu.git, and I went ahead and started running the unittests on qemu.git. It's still not integrated to our test grid, I just ran it in my laptop, which runs a fairly recent linux 3.0 kernel (which in Fedora

Re: [Qemu-devel] [PATCH] hw: Add test device for unittests execution

2011-08-26 Thread Anthony Liguori
On 08/26/2011 03:04 PM, Lucas Meneghel Rodrigues wrote: Add a test device which supports the kvmctl ioports, for running the KVM test suite. This is a straight port from the latest version of the test device present on qemu-kvm, using the APIs currently in use by qemu. With this we aim for daily

Re: [Qemu-devel] kvm PCI assignment & VFIO ramblings

2011-08-26 Thread Chris Wright
* Aaron Fabbri (aafab...@cisco.com) wrote: > On 8/26/11 12:35 PM, "Chris Wright" wrote: > > * Aaron Fabbri (aafab...@cisco.com) wrote: > >> Each process will open vfio devices on the fly, and they need to be able to > >> share IOMMU resources. > > > > How do you share IOMMU resources w/ multiple

Re: [Qemu-devel] kvm PCI assignment & VFIO ramblings

2011-08-26 Thread Aaron Fabbri
On 8/26/11 12:35 PM, "Chris Wright" wrote: > * Aaron Fabbri (aafab...@cisco.com) wrote: >> On 8/26/11 7:07 AM, "Alexander Graf" wrote: >>> Forget the KVM case for a moment and think of a user space device driver. I >>> as >>> a user am not root. But I as a user when having access to /dev/vfio

Re: [Qemu-devel] [PATCH 6/6] target-alpha: Add high-resolution access to wall clock and an alarm.

2011-08-26 Thread Richard Henderson
On 08/26/2011 06:36 AM, Peter Maydell wrote: > Look at the way target-i386 and target-mips use gen_io_start() > and gen_io_end() around x86 io insns and MIPS mtc0. I think > that what you need is (a) to bracket with gen_io_start/end > and (b) to end the translation block, but that's really just > g

[Qemu-devel] [PATCH] hw: Add test device for unittests execution

2011-08-26 Thread Lucas Meneghel Rodrigues
Add a test device which supports the kvmctl ioports, for running the KVM test suite. This is a straight port from the latest version of the test device present on qemu-kvm, using the APIs currently in use by qemu. With this we aim for daily execution of the KVM unittests to capture any problems wi

Re: [Qemu-devel] [PATCH 6/6] target-alpha: Add high-resolution access to wall clock and an alarm.

2011-08-26 Thread Richard Henderson
On 08/26/2011 06:36 AM, Peter Maydell wrote: > Look at the way target-i386 and target-mips use gen_io_start() > and gen_io_end() around x86 io insns and MIPS mtc0. I think > that what you need is (a) to bracket with gen_io_start/end > and (b) to end the translation block, but that's really just > g

Re: [Qemu-devel] [PATCH] hw/pci-stub: fix comment typo

2011-08-26 Thread Alon Levy
On Fri, Aug 26, 2011 at 11:17:59PM +0400, malc wrote: > On Fri, 26 Aug 2011, Alon Levy wrote: > > > Signed-off-by: Alon Levy > > > --- > > hw/pci-stub.c |2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/hw/pci-stub.c b/hw/pci-stub.c > > index c5a0aa8..8454c30

[Qemu-devel] [PATCH 2/2] g364fb: convert to qdev

2011-08-26 Thread Hervé Poussineau
Extract G364 ROM contents from device emulation to machine emulation, so device emulation can be reused in other machines (Commodore Amiga) Signed-off-by: Hervé Poussineau --- hw/g364fb.c| 340 +--- hw/mips.h |5 - hw/mips_jazz.c

Re: [Qemu-devel] kvm PCI assignment & VFIO ramblings

2011-08-26 Thread Chris Wright
* Aaron Fabbri (aafab...@cisco.com) wrote: > On 8/26/11 7:07 AM, "Alexander Graf" wrote: > > Forget the KVM case for a moment and think of a user space device driver. I > > as > > a user am not root. But I as a user when having access to /dev/vfioX want to > > be able to access the device and man

[Qemu-devel] [PATCH 0/2] g364 improvements

2011-08-26 Thread Hervé Poussineau
Here are some patches I have lying around since some time, which update g364 framebuffer emulation to current Qemu standards, ie qdev + memory + trace APIs Please apply Hervé Poussineau (2): g364fb: use trace framework g364fb: convert to qdev Extract G364 ROM contents from device emul

[Qemu-devel] [PATCH 1/2] g364fb: use trace framework

2011-08-26 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/g364fb.c | 29 +++-- trace-events |4 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/hw/g364fb.c b/hw/g364fb.c index b3020c5..fa074f4 100644 --- a/hw/g364fb.c +++ b/hw/g364fb.c @@ -21,17 +21,7 @@ #inclu

Re: [Qemu-devel] [PATCH] hw/pci-stub: fix comment typo

2011-08-26 Thread malc
On Fri, 26 Aug 2011, Alon Levy wrote: > Signed-off-by: Alon Levy > --- > hw/pci-stub.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/hw/pci-stub.c b/hw/pci-stub.c > index c5a0aa8..8454c30 100644 > --- a/hw/pci-stub.c > +++ b/hw/pci-stub.c > @@ -1,5 +1,5 @@ > /

[Qemu-devel] [Bug 834978] [NEW] configure file assumes glib is required under MinGW

2011-08-26 Thread Steve Si
Public bug reported: See http://comments.gmane.org/gmane.comp.emulators.qemu/18 The current configure file does not have these changes which means you get an error when compiled under MinGW. ** Affects: qemu Importance: Undecided Status: New -- You received this bug notifica

Re: [Qemu-devel] [PATCH 1/2] Fix guest agent build with simpletrace

2011-08-26 Thread Lluís
Blue Swirl writes: > 957f1f99f263d57612807a9535f75ca4473f05f0 didn't consider > that qemu-timer-common.o is needed by simpletrace. > Fix by adding it to qga object list. > Signed-off-by: Blue Swirl > --- > Makefile.objs |3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > diff --g

[Qemu-devel] [PATCH] hw/pci-stub: fix comment typo

2011-08-26 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/pci-stub.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pci-stub.c b/hw/pci-stub.c index c5a0aa8..8454c30 100644 --- a/hw/pci-stub.c +++ b/hw/pci-stub.c @@ -1,5 +1,5 @@ /* - * PCI stubs for plathome that doesn't support pci bus. + *

[Qemu-devel] Question about (next_tb & 3) == 2

2011-08-26 Thread Lyu Mitnick
Hello all, I am a newbie of QEMU and wondering to know the meaning of: if ((next_tb & 3) == 2) { /* Instruction counter expired. */ int insns_left; tb = (TranslationBlock *)(long)(next_tb & ~3); /* Restore PC. */ cpu_pc_from_tb(env, tb); insns_left = env->icount_decr.u3

Re: [Qemu-devel] Register usage statistics?

2011-08-26 Thread Lluís
Peter Maydell writes: > On 26 August 2011 18:35, Lluís wrote: >> Benjamin Ylvisaker writes: >>> I am working on a project for which I'd like to gather statistics >>> about register usage.  (For example, distributions of degree-of-use >>> and dynamic lifetimes of register-values.)  Is QEMU a good

[Qemu-devel] [PATCH 2/2] fw_cfg: fix crash if FW_CFG_WRITE_CHANNEL is used incorrectly

2011-08-26 Thread Blue Swirl
Avoid a crash if the guest combines FW_CFG_WRITE_CHANNEL with a wrong value. Signed-off-by: Blue Swirl --- hw/fw_cfg.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/fw_cfg.c b/hw/fw_cfg.c index 663ad80..8df265c 100644 --- a/hw/fw_cfg.c +++ b/hw/fw_cfg.c @@ -214,7

[Qemu-devel] [PATCH 1/2] Fix guest agent build with simpletrace

2011-08-26 Thread Blue Swirl
957f1f99f263d57612807a9535f75ca4473f05f0 didn't consider that qemu-timer-common.o is needed by simpletrace. Fix by adding it to qga object list. Signed-off-by: Blue Swirl --- Makefile.objs |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Makefile.objs b/Makefile.objs i

Re: [Qemu-devel] [PATCH] vhost-net: cleanup host notifiers at last step

2011-08-26 Thread Ryan Harper
* Michael S. Tsirkin [2011-08-25 05:11]: > When the vhost notifier is disabled, the userspace handler runs > immediately: virtio_pci_set_host_notifier_internal might > call virtio_queue_notify_vq. > Since the VQ state and the tap backend state aren't > recovered yet, this causes > "Guest moved use

[Qemu-devel] [PATCH v2 4/6] QMP: Add QBuffer

2011-08-26 Thread Jan Kiszka
This introduces a buffer object for use with QMP. As a buffer is not natively encodable in JSON, we encode it as a base64 string and encapsulate the result in the new QMP object class "buffer". The first use case for this is pushing the content of buffers that are part of a device state into a qdi

Re: [Qemu-devel] Physical address debugging

2011-08-26 Thread Jan Kiszka
On 2011-08-26 20:02, Blue Swirl wrote: > 2011/8/26 Jan Kiszka : >> On 2011-08-26 19:34, Blue Swirl wrote: >>> 2011/8/26 Jan Kiszka : On 2011-08-26 16:21, Zeus Gómez Marmolejo wrote: > Hi all, > > I just want to do a very simple task. I'm using QEMU for debugging a new > OS >>>

Re: [Qemu-devel] kvm PCI assignment & VFIO ramblings

2011-08-26 Thread Alex Williamson
On Thu, 2011-08-25 at 20:05 +0200, Joerg Roedel wrote: > On Thu, Aug 25, 2011 at 11:20:30AM -0600, Alex Williamson wrote: > > On Thu, 2011-08-25 at 12:54 +0200, Roedel, Joerg wrote: > > > > We need to solve this differently. ARM is starting to use the iommu-api > > > too and this definitly does no

Re: [Qemu-devel] [PATCH 2/6] Add base64 encoder/decoder

2011-08-26 Thread Jan Kiszka
On 2011-08-26 17:47, Jan Kiszka wrote: > On 2011-08-26 17:23, Jan Kiszka wrote: >> On 2011-08-26 17:21, Peter Maydell wrote: >>> On 26 August 2011 15:48, Jan Kiszka wrote: Will be used by QBuffer. >>> >>> Is it possible to use the glib base64 encode/decode routines instead >>> of rolling our

Re: [Qemu-devel] Physical address debugging

2011-08-26 Thread Blue Swirl
2011/8/26 Jan Kiszka : > On 2011-08-26 19:34, Blue Swirl wrote: >> 2011/8/26 Jan Kiszka : >>> On 2011-08-26 16:21, Zeus Gómez Marmolejo wrote: Hi all, I just want to do a very simple task. I'm using QEMU for debugging a new OS and I see that there is a memory region that is bein

Re: [Qemu-devel] [PATCH] Fix qjson test of solidus encoding

2011-08-26 Thread Luiz Capitulino
On Fri, 26 Aug 2011 14:58:15 -0300 Luiz Capitulino wrote: > On Fri, 26 Aug 2011 19:52:11 +0200 > Jan Kiszka wrote: > > > On 2011-08-26 19:43, Luiz Capitulino wrote: > > > On Fri, 26 Aug 2011 18:48:52 +0200 > > > Jan Kiszka wrote: > > > > > >> Hi all, > > >> > > >> current master has some qreg

Re: [Qemu-devel] [PATCH] Fix qjson test of solidus encoding

2011-08-26 Thread Luiz Capitulino
On Fri, 26 Aug 2011 19:52:11 +0200 Jan Kiszka wrote: > On 2011-08-26 19:43, Luiz Capitulino wrote: > > On Fri, 26 Aug 2011 18:48:52 +0200 > > Jan Kiszka wrote: > > > >> Hi all, > >> > >> current master has some qregressions: > >> > >> # ./check-qdict > >> Running suite(s): QDict test-suite > >

Re: [Qemu-devel] Physical address debugging

2011-08-26 Thread Jan Kiszka
On 2011-08-26 19:34, Blue Swirl wrote: > 2011/8/26 Jan Kiszka : >> On 2011-08-26 16:21, Zeus Gómez Marmolejo wrote: >>> Hi all, >>> >>> I just want to do a very simple task. I'm using QEMU for debugging a new OS >>> and I see that there is a memory region that is being updated by an unknown >>> tas

Re: [Qemu-devel] kvm PCI assignment & VFIO ramblings

2011-08-26 Thread Aaron Fabbri
On 8/26/11 7:07 AM, "Alexander Graf" wrote: > > > Forget the KVM case for a moment and think of a user space device driver. I as > a user am not root. But I as a user when having access to /dev/vfioX want to > be able to access the device and manage it - and only it. The admin of that > box

[Qemu-devel] [PATCH] Fix qjson test of solidus encoding

2011-08-26 Thread Jan Kiszka
On 2011-08-26 19:43, Luiz Capitulino wrote: > On Fri, 26 Aug 2011 18:48:52 +0200 > Jan Kiszka wrote: > >> Hi all, >> >> current master has some qregressions: >> >> # ./check-qdict >> Running suite(s): QDict test-suite >> 93%: Checks: 16, Failures: 1, Errors: 0 >> check-qdict.c:289:F:Stress Test:

Re: [Qemu-devel] Register usage statistics?

2011-08-26 Thread Peter Maydell
On 26 August 2011 18:35, Lluís wrote: > Benjamin Ylvisaker writes: >> I am working on a project for which I'd like to gather statistics >> about register usage.  (For example, distributions of degree-of-use >> and dynamic lifetimes of register-values.)  Is QEMU a good tool for >> doing this kind o

Re: [Qemu-devel] check-qdict and check-qjson fail

2011-08-26 Thread Luiz Capitulino
On Fri, 26 Aug 2011 18:48:52 +0200 Jan Kiszka wrote: > Hi all, > > current master has some qregressions: > > # ./check-qdict > Running suite(s): QDict test-suite > 93%: Checks: 16, Failures: 1, Errors: 0 > check-qdict.c:289:F:Stress Test:qdict_stress_test:0: Assertion 'test_file != > NULL' fa

[Qemu-devel] VFIO v2 design plan

2011-08-26 Thread Alex Williamson
I don't think too much has changed since the previous email went out, but it seems like a good idea to post a summary in case there were suggestions or objections that I missed. VFIO v2 will rely on the platform iommu driver reporting grouping information. Again, a group is a set of devices for

Re: [Qemu-devel] Regression in QEMU user-mode (Was: "tcg: Reload local variables after return from longjmp")

2011-08-26 Thread Blue Swirl
On Fri, Aug 26, 2011 at 2:28 PM, wrote: > On Fri, Aug 26, 2011 at 04:19:26PM +0200, Peter Maydell wrote: >> Yes; we've discussed this before in this thread: >> http://lists.nongnu.org/archive/html/qemu-devel/2011-08/msg01623.html >> >> That commit breaks multi-threaded usermode programs (well, ev

Re: [Qemu-devel] Register usage statistics?

2011-08-26 Thread Lluís
Benjamin Ylvisaker writes: > I am working on a project for which I'd like to gather statistics > about register usage. (For example, distributions of degree-of-use > and dynamic lifetimes of register-values.) Is QEMU a good tool for > doing this kind of work? Has anyone else done this? I looke

Re: [Qemu-devel] Physical address debugging

2011-08-26 Thread Blue Swirl
2011/8/26 Jan Kiszka : > On 2011-08-26 16:21, Zeus Gómez Marmolejo wrote: >> Hi all, >> >> I just want to do a very simple task. I'm using QEMU for debugging a new OS >> and I see that there is a memory region that is being updated by an unknown >> task. I don't know if it's another process or the

[Qemu-devel] Test the serial ports from qemu

2011-08-26 Thread bala suru
Hi, I'm running Qemu-kvm hyper visor , and now I want test the serial port -/dev/ttyS0 , . How to check this from qemu command ..? becoz I started VM on this hypervisor and not able to access the /dev/ttyS0 from the VM . Pls help

[Qemu-devel] Register usage statistics?

2011-08-26 Thread Benjamin Ylvisaker
I am working on a project for which I'd like to gather statistics about register usage. (For example, distributions of degree-of-use and dynamic lifetimes of register-values.) Is QEMU a good tool for doing this kind of work? Has anyone else done this? I looked at the tracing available in QEM

[Qemu-devel] check-qdict and check-qjson fail

2011-08-26 Thread Jan Kiszka
Hi all, current master has some qregressions: # ./check-qdict Running suite(s): QDict test-suite 93%: Checks: 16, Failures: 1, Errors: 0 check-qdict.c:289:F:Stress Test:qdict_stress_test:0: Assertion 'test_file != NULL' failed # ./check-qjson Running suite(s): QJSON test-suite 95%: Checks: 21

Re: [Qemu-devel] [PATCH 6/6] target-alpha: Add high-resolution access to wall clock and an alarm.

2011-08-26 Thread Peter Maydell
On 26 August 2011 17:28, Richard Henderson wrote: > On 08/25/2011 11:07 PM, Paolo Bonzini wrote: >> On 08/26/2011 05:51 AM, Peter Maydell wrote: >>> Don't you need some magic around helper calls that read/write >>> the time to keep -icount working? I don't understand this but >>> Paolo does... >>

Re: [Qemu-devel] [PATCH 6/6] target-alpha: Add high-resolution access to wall clock and an alarm.

2011-08-26 Thread Richard Henderson
On 08/25/2011 11:07 PM, Paolo Bonzini wrote: > On 08/26/2011 05:51 AM, Peter Maydell wrote: >> Don't you need some magic around helper calls that read/write >> the time to keep -icount working? I don't understand this but >> Paolo does... > > Let's say I understand the theory (how icount relies on

Re: [Qemu-devel] [PATCH 3/3] block: latency accounting

2011-08-26 Thread Christoph Hellwig
On Fri, Aug 26, 2011 at 03:05:06PM +0200, Kevin Wolf wrote: > The order of READ vs. WRITE is wrong here, so read latencies show up as > wr_total_time. I can fix it locally if you agree that swapping the two > lines is the right fix. Yes, it got mixed up in one of the revamps.

[Qemu-devel] [PATCH] qemu-img: Require larger zero areas for sparse handling

2011-08-26 Thread Kevin Wolf
By default, require 4k of consecutive zero bytes for qemu-img to make the output file sparse by not issuing a write request for the zeroed parts. Add an -S option to allow users to tune this setting. This helps to avoid situations where a lot of zero sectors and data sectors are mixed and qemu-img

Re: [Qemu-devel] [PATCH 2/6] Add base64 encoder/decoder

2011-08-26 Thread Jan Kiszka
On 2011-08-26 17:23, Jan Kiszka wrote: > On 2011-08-26 17:21, Peter Maydell wrote: >> On 26 August 2011 15:48, Jan Kiszka wrote: >>> Will be used by QBuffer. >> >> Is it possible to use the glib base64 encode/decode routines instead >> of rolling our own here? > > Yeah, times are changing. Need t

[Qemu-devel] [PATCH] usb-host: endpoint table fixup

2011-08-26 Thread Gerd Hoffmann
USB Devices can have up to 15 IN and 15 OUT endpoints, not 15 endpoints total. Move from one array to two arrays (one IN, one OUT) to maintain the endpoint state. Note for testers: all usb fixes posted yesterday and today are available here for your convinience: git://git.kraxel.org/qemu usb.2

Re: [Qemu-devel] kvm PCI assignment & VFIO ramblings

2011-08-26 Thread Alexander Graf
On 26.08.2011, at 10:24, Joerg Roedel wrote: > On Fri, Aug 26, 2011 at 09:07:35AM -0500, Alexander Graf wrote: >> On 26.08.2011, at 04:33, Roedel, Joerg wrote: >>> >>> The reason is that you mean the usability for the programmer and I mean >>> it for the actual user of qemu :) >> >> No, we mean

[Qemu-devel] [PATCH 4/6] QMP: Add QBuffer

2011-08-26 Thread Jan Kiszka
This introduces a buffer object for use with QMP. As a buffer is not natively encodable in JSON, we encode it as a base64 string and encapsulate the result in the new QMP object class "buffer". The first use case for this is pushing the content of buffers that are part of a device state into a qdi

Re: [Qemu-devel] kvm PCI assignment & VFIO ramblings

2011-08-26 Thread Joerg Roedel
On Fri, Aug 26, 2011 at 09:07:35AM -0500, Alexander Graf wrote: > On 26.08.2011, at 04:33, Roedel, Joerg wrote: > > > > The reason is that you mean the usability for the programmer and I mean > > it for the actual user of qemu :) > > No, we mean the actual user of qemu. The reason being that maki

Re: [Qemu-devel] [PATCH 2/6] Add base64 encoder/decoder

2011-08-26 Thread Jan Kiszka
On 2011-08-26 17:21, Peter Maydell wrote: > On 26 August 2011 15:48, Jan Kiszka wrote: >> Will be used by QBuffer. > > Is it possible to use the glib base64 encode/decode routines instead > of rolling our own here? Yeah, times are changing. Need to check what's there and how to use it. Jan --

[Qemu-devel] [PATCH 3/6] QMP: Reserve namespace for complex object classes

2011-08-26 Thread Jan Kiszka
This reserves JSON objects that contain the key '__class__' for QMP-specific complex objects. First user will be the buffer class. CC: Luiz Capitulino Signed-off-by: Jan Kiszka --- QMP/qmp-spec.txt | 16 +--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/QMP/qmp-

Re: [Qemu-devel] [PATCH 2/6] Add base64 encoder/decoder

2011-08-26 Thread Peter Maydell
On 26 August 2011 15:48, Jan Kiszka wrote: > Will be used by QBuffer. Is it possible to use the glib base64 encode/decode routines instead of rolling our own here? -- PMM

[Qemu-devel] [PATCH 6/6] qdev: Generate IDs for anonymous devices

2011-08-26 Thread Jan Kiszka
In order to address devices for that the user forgot or is even unable (no_user) to provide an ID, assign an automatically generated one. Such IDs have the format #, thus are outside the name space availing to users. Don't use them for bus naming to avoid any other user-visible change. CC: Markus

[Qemu-devel] [PATCH 2/6] Add base64 encoder/decoder

2011-08-26 Thread Jan Kiszka
Will be used by QBuffer. CC: Luiz Capitulino Signed-off-by: Jan Kiszka --- Makefile.objs |2 +- base64.c | 202 + base64.h | 19 ++ 3 files changed, 222 insertions(+), 1 deletions(-) create mode 100644 base64.c creat

[Qemu-devel] [PATCH 5/6] monitor: Add basic device state visualization

2011-08-26 Thread Jan Kiszka
This introduces device_show, a monitor command that saves the vmstate of a qdev device and visualizes it. Buffers are cut after 16 byte by default, but the full content can be requested via '-f'. To pretty-print sub-arrays, vmstate is extended to store the start index name. A new qerror is introduc

[Qemu-devel] [PATCH 1/6] monitor: return length of printed string via monitor_[v]printf

2011-08-26 Thread Jan Kiszka
This simply forwards the result of the internal vsnprintf to the callers of monitor_printf and monitor_vprintf. When invoked over a QMP session or in absence of an active monitor, -1 is returned. CC: Luiz Capitulino Signed-off-by: Jan Kiszka --- monitor.c | 23 +++ monit

[Qemu-devel] [PATCH 0/6] Device state visualization reloaded

2011-08-26 Thread Jan Kiszka
More than one year ago I posted some patches to add a monitor command callend device_show. The purpose of that command is to dump the state of some qdev device based on its vmstate. To improve the usability of that interface, the previous series also tried to create a canonical qdev tree path name

Re: [Qemu-devel] Physical address debugging

2011-08-26 Thread Jan Kiszka
On 2011-08-26 16:21, Zeus Gómez Marmolejo wrote: > Hi all, > > I just want to do a very simple task. I'm using QEMU for debugging a new OS > and I see that there is a memory region that is being updated by an unknown > task. I don't know if it's another process or the kernel itself. > > So I woul

Re: [Qemu-devel] Regression in QEMU user-mode (Was: "tcg: Reload local variables after return from longjmp")

2011-08-26 Thread cedric.vincent
On Fri, Aug 26, 2011 at 04:19:26PM +0200, Peter Maydell wrote: > Yes; we've discussed this before in this thread: > http://lists.nongnu.org/archive/html/qemu-devel/2011-08/msg01623.html > > That commit breaks multi-threaded usermode programs (well, even > more than they usually are). I think we de

[Qemu-devel] Physical address debugging

2011-08-26 Thread Zeus Gómez Marmolejo
Hi all, I just want to do a very simple task. I'm using QEMU for debugging a new OS and I see that there is a memory region that is being updated by an unknown task. I don't know if it's another process or the kernel itself. So I would like to put a physical memory watchpoint. I don't know how to

Re: [Qemu-devel] Regression in QEMU user-mode (Was: "tcg: Reload local variables after return from longjmp")

2011-08-26 Thread Peter Maydell
On 26 August 2011 15:15, wrote: > Hi Jan Kiszka & Blue Swirl, > > Hi would like to report a strange behaviour exposed by commit 0d101938 > "tcg: Reload local variables after return from longjmp" (found with > `git bisect` and then reverted to be sure). > > When emulating in *user-mode* the progra

[Qemu-devel] Regression in QEMU user-mode (Was: "tcg: Reload local variables after return from longjmp")

2011-08-26 Thread cedric.vincent
Hi Jan Kiszka & Blue Swirl, Hi would like to report a strange behaviour exposed by commit 0d101938 "tcg: Reload local variables after return from longjmp" (found with `git bisect` and then reverted to be sure). When emulating in *user-mode* the program `msgmerge`, I get the following error(s):

Re: [Qemu-devel] kvm PCI assignment & VFIO ramblings

2011-08-26 Thread Alexander Graf
On 26.08.2011, at 04:33, Roedel, Joerg wrote: > On Fri, Aug 26, 2011 at 12:20:00AM -0400, David Gibson wrote: >> On Wed, Aug 24, 2011 at 01:03:32PM +0200, Roedel, Joerg wrote: >>> On Wed, Aug 24, 2011 at 05:33:00AM -0400, David Gibson wrote: On Wed, Aug 24, 2011 at 11:14:26AM +0200, Roedel,

Re: [Qemu-devel] [PATCH] Ensure migrate_cancel does not block doing I/O

2011-08-26 Thread Paolo Bonzini
On 08/26/2011 01:25 PM, Daniel P. Berrange wrote: diff --git a/migration.c b/migration.c index f5959b4..6448d0b 100644 --- a/migration.c +++ b/migration.c @@ -319,6 +319,11 @@ ssize_t migrate_fd_put_buffer(void *opaque, const void *data, size_t size) FdMigrationState *s = opaque; ssi

[Qemu-devel] [PATCH] checkpatch: fix braces {} handling

2011-08-26 Thread Pavel Borzenkov
checkpatch.pl doesn't report warning for if/else statements with missing 'else' braces: if (something) { foo; } else bar; The patch has been tested using the last 100 commits. Signed-off-by: Pavel Borzenkov --- scripts/checkpatch.pl |2 +- 1 files changed, 1 insertions(+), 1 deleti

Re: [Qemu-devel] [PATCH 0/3] client_migrate_switch and auto_switch (RHBZ 725009)

2011-08-26 Thread Daniel P. Berrange
On Fri, Aug 26, 2011 at 02:39:59PM +0200, Gerd Hoffmann wrote: > >> (1) libvirt sets spice ticket at dst (stage 2) > >> (2) migration src->dst (stage 3) > >> (3) spice client switches connection to dst > > > >This is actually what we have already. The problem is that > >the 'migration src->ds

[Qemu-devel] Password for SPICE x509 key

2011-08-26 Thread Andrea Spadaccini
Hello everybody, is there another way to pass the SPICE x509 private key passphrase to qemu that is not sending it in clear via the command line? Thanks, Andrea

Re: [Qemu-devel] [PATCH 3/3] block: latency accounting

2011-08-26 Thread Kevin Wolf
Am 25.08.2011 08:26, schrieb Christoph Hellwig: > Account the total latency for read/write/flush requests. This allows > management tools to average it based on a snapshot of the nr ops > counters and allow checking for SLAs or provide statistics. > > Signed-off-by: Christoph Hellwig > > Index:

Re: [Qemu-devel] Bug in checkpatch.pl?

2011-08-26 Thread Stefan Hajnoczi
On Fri, Aug 26, 2011 at 11:28 AM, Pavel Borzenkov wrote: > checkpatch.pl correctly reports a warning for the following code: > > if (something) >    foo; > else >    bar; > > WARNING: braces {} are necessary for all arms of this statement > #1: FILE: tmp/a.c:1: > +if (something) > [...] > +else >

Re: [Qemu-devel] [PATCH] ui: avoid use of deprecated gnutls_*_set_priority functions

2011-08-26 Thread Stefan Hajnoczi
On Fri, Aug 26, 2011 at 11:24 AM, Peter Maydell wrote: > On 25 August 2011 14:13, Daniel P. Berrange wrote: >> On Thu, Aug 25, 2011 at 01:27:00PM +0100, Peter Maydell wrote: >>> Does this constitute a change in the required version of gnutls which >>> we need to document in the proto-changelog fo

[Qemu-devel] [PATCH] usb-ehci: handle siTDs

2011-08-26 Thread Gerd Hoffmann
This patch adds code to do minimal siTD handling, which is basically just following the next pointer. This is good enougth to handle the inactive siTDs used by FreeBSD. Active siTDs are skipped too as we don't have split transfer support in qemu, additionally a warning is printed. Signed-off-by:

Re: [Qemu-devel] [PATCH 0/3] client_migrate_switch and auto_switch (RHBZ 725009)

2011-08-26 Thread Gerd Hoffmann
(1) libvirt sets spice ticket at dst (stage 2) (2) migration src->dst (stage 3) (3) spice client switches connection to dst This is actually what we have already. The problem is that the 'migration src->dst' here can take an arbitrary amount of time. So by the time the spice client swit

Re: [Qemu-devel] qemu 0.15.0 testing, usb redirection, and libusb_get_device_speed()

2011-08-26 Thread Gerd Hoffmann
Hi, /me wonders what FreeBSD tries to do here? This triggers even without a single device connected and I can't think of a reason to use a siTD in that case ... Ah, the siTD simply isn't active so we can just skip it. That is easy to do ;) cheers, Gerd

Re: [Qemu-devel] [PATCH] Ensure migrate_cancel does not block doing I/O

2011-08-26 Thread Daniel P. Berrange
On Fri, Aug 26, 2011 at 11:59:28AM +0100, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > There are two common cases where migrate_cancel is intended to be > used > > 1. When migration is not converging due to an overactive > guest and insufficient network bandwidth > 2. When

Re: [Qemu-devel] [PATCH 0/3] client_migrate_switch and auto_switch (RHBZ 725009)

2011-08-26 Thread Daniel P. Berrange
On Fri, Aug 26, 2011 at 01:00:29PM +0200, Gerd Hoffmann wrote: > Hi, > > >>Ok, so I think we should be able to fix the race outlined above > >>without adding new monitor commands, just by letting libvirt set the > >>spice ticket in stage 2. > > > >Is that different then what I suggested in my re

Re: [Qemu-devel] [PATCH 0/3] client_migrate_switch and auto_switch (RHBZ 725009)

2011-08-26 Thread Gerd Hoffmann
Hi, Ok, so I think we should be able to fix the race outlined above without adding new monitor commands, just by letting libvirt set the spice ticket in stage 2. Is that different then what I suggested in my reply to Daniel's 5 stage outline? I think we have to care to not mix up switch-ho

[Qemu-devel] [PATCH] Ensure migrate_cancel does not block doing I/O

2011-08-26 Thread Daniel P. Berrange
From: "Daniel P. Berrange" There are two common cases where migrate_cancel is intended to be used 1. When migration is not converging due to an overactive guest and insufficient network bandwidth 2. When migration is stuck due a network outage, waiting for the TCP transmit timeout

Re: [Qemu-devel] [RfC PATCH] usb/vmstate: add parent dev path

2011-08-26 Thread Gerd Hoffmann
On 08/26/11 12:25, Daniel P. Berrange wrote: On Fri, Aug 26, 2011 at 12:11:20PM +0200, Gerd Hoffmann wrote: ... to make vmstate id string truely unique with multiple host controllers, i.e. move from "1/usb-ptr" to ":00:01.3/1/usb-ptr" (usb tabled connected to piix3 uhci). Obvious problem wi

Re: [Qemu-devel] [PATCH 0/3] client_migrate_switch and auto_switch (RHBZ 725009)

2011-08-26 Thread Alon Levy
On Fri, Aug 26, 2011 at 12:17:58PM +0200, Gerd Hoffmann wrote: > On 08/26/11 12:03, Daniel P. Berrange wrote: > >On Fri, Aug 26, 2011 at 11:54:49AM +0200, Gerd Hoffmann wrote: > >>On 08/19/11 19:08, Alon Levy wrote: > >>>Fix the ticket expiration on target vm for a spice connection without > >>>in

Re: [Qemu-devel] qemu 0.15.0 testing, usb redirection, and libusb_get_device_speed()

2011-08-26 Thread Gerd Hoffmann
Hi, [you would replace docs/ich9-ehci-uhci.cfg with e.g. /usr/local/share/doc/qemu/docs/ich9-ehci-uhci.cfg, but turns out ehci seems broken for me here with FreeBSD guests at least, I get: FETCHENTRY: entry at 22C5484 is of type 2 which is not supported yet processing error

Re: [Qemu-devel] Guest kernel device compatability auto-detection

2011-08-26 Thread Richard W.M. Jones
On Fri, Aug 26, 2011 at 01:18:49PM +0300, Sasha Levin wrote: > On Fri, 2011-08-26 at 09:04 +0100, Richard W.M. Jones wrote: > > On Fri, Aug 26, 2011 at 09:22:45AM +0300, Sasha Levin wrote: > > > On Thu, 2011-08-25 at 16:25 +, Decker, Schorschi wrote: > > > > 2) implement the feature as an agent

[Qemu-devel] Bug in checkpatch.pl?

2011-08-26 Thread Pavel Borzenkov
Hi. checkpatch.pl correctly reports a warning for the following code: if (something) foo; else bar; WARNING: braces {} are necessary for all arms of this statement #1: FILE: tmp/a.c:1: +if (something) [...] +else [...] But if I modify it as follows, checkpatch.pl doesn't report any w

Re: [Qemu-devel] [PATCH 0/3] client_migrate_switch and auto_switch (RHBZ 725009)

2011-08-26 Thread Alon Levy
On Fri, Aug 26, 2011 at 11:03:38AM +0100, Daniel P. Berrange wrote: > On Fri, Aug 26, 2011 at 11:54:49AM +0200, Gerd Hoffmann wrote: > > On 08/19/11 19:08, Alon Levy wrote: > > >Fix the ticket expiration on target vm for a spice connection without > > >introducing > > >a race between the spice ser

Re: [Qemu-devel] [RfC PATCH] usb/vmstate: add parent dev path

2011-08-26 Thread Daniel P. Berrange
On Fri, Aug 26, 2011 at 12:11:20PM +0200, Gerd Hoffmann wrote: > ... to make vmstate id string truely unique with multiple host > controllers, i.e. move from "1/usb-ptr" to ":00:01.3/1/usb-ptr" > (usb tabled connected to piix3 uhci). > > Obvious problem with that is that it breaks migration fr

Re: [Qemu-devel] [PATCH] ui: avoid use of deprecated gnutls_*_set_priority functions

2011-08-26 Thread Peter Maydell
On 25 August 2011 14:13, Daniel P. Berrange wrote: > On Thu, Aug 25, 2011 at 01:27:00PM +0100, Peter Maydell wrote: >> Does this constitute a change in the required version of gnutls which >> we need to document in the proto-changelog for the next release? >> Is it worth updating the configure tls

Re: [Qemu-devel] Guest kernel device compatability auto-detection

2011-08-26 Thread Sasha Levin
On Fri, 2011-08-26 at 09:04 +0100, Richard W.M. Jones wrote: > On Fri, Aug 26, 2011 at 09:22:45AM +0300, Sasha Levin wrote: > > On Thu, 2011-08-25 at 16:25 +, Decker, Schorschi wrote: > > > 2) implement the feature as an agent in the guest OS where the > > > hypervisor can only query the guest

Re: [Qemu-devel] [PATCH 0/3] client_migrate_switch and auto_switch (RHBZ 725009)

2011-08-26 Thread Gerd Hoffmann
On 08/26/11 12:03, Daniel P. Berrange wrote: On Fri, Aug 26, 2011 at 11:54:49AM +0200, Gerd Hoffmann wrote: On 08/19/11 19:08, Alon Levy wrote: Fix the ticket expiration on target vm for a spice connection without introducing a race between the spice server switching the client to the new host

[Qemu-devel] [RfC PATCH] usb/vmstate: add parent dev path

2011-08-26 Thread Gerd Hoffmann
... to make vmstate id string truely unique with multiple host controllers, i.e. move from "1/usb-ptr" to ":00:01.3/1/usb-ptr" (usb tabled connected to piix3 uhci). Obvious problem with that is that it breaks migration from and to older versions, thats why it is RfC. I don't see any way to fi

[Qemu-devel] [PULL] pci, virtio, net, migration

2011-08-26 Thread Michael S. Tsirkin
The following changes since commit e8906f3529a452276375ab8e7b8598751bc33b01: PPC: E500: Set ESR values (2011-08-23 22:24:40 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git for_anthony Isaku Yamahata (2): pcie/slot: fix hotplug e

Re: [Qemu-devel] [PATCH 0/3] client_migrate_switch and auto_switch (RHBZ 725009)

2011-08-26 Thread Daniel P. Berrange
On Fri, Aug 26, 2011 at 11:54:49AM +0200, Gerd Hoffmann wrote: > On 08/19/11 19:08, Alon Levy wrote: > >Fix the ticket expiration on target vm for a spice connection without > >introducing > >a race between the spice server switching the client to the new host itself > >and > >the target libvirt

Re: [Qemu-devel] [PATCH] pci: add standard bridge device

2011-08-26 Thread Michael S. Tsirkin
On Thu, Aug 18, 2011 at 11:22:31AM +0800, Wen Congyang wrote: > >From 3cee5a14f0ff7aeac148f9416eac6fa7c6ca Mon Sep 17 00:00:00 2001 > From: Wen Congyang > Date: Thu, 18 Aug 2011 09:33:19 +0800 > Subject: [PATCH] PCI_Bridge: use parent bus's address space > > The pci device may call pci_regist

Re: [Qemu-devel] sparc32_dma: correctly initialize ledma base address

2011-08-26 Thread Artyom Tarasenko
On Mon, Aug 15, 2011 at 5:38 PM, Bob Breuer wrote: > Mark Cave-Ayland wrote: >> On 11/08/11 17:11, Bob Breuer wrote: >> >>> The ledma base address defaults to 0xff00 on reset.  This >>> fixes a bug with Solaris and SS-20 OBP when boot net is skipped. >>> >>> Signed-off-by: Bob Breuer >>> --- >

Re: [Qemu-devel] [PATCH 0/3] client_migrate_switch and auto_switch (RHBZ 725009)

2011-08-26 Thread Gerd Hoffmann
On 08/19/11 19:08, Alon Levy wrote: Fix the ticket expiration on target vm for a spice connection without introducing a race between the spice server switching the client to the new host itself and the target libvirt setting the new expiration date, by adding an option to client_migrate_info to

Re: [Qemu-devel] [PATCH] pci: add standard bridge device

2011-08-26 Thread Michael S. Tsirkin
On Thu, Aug 18, 2011 at 08:15:43AM -0700, Avi Kivity wrote: > It's correct but insufficient, the filtering code > (pci_bridge_filter) needs to be updated to use the memory API. > > Basically it gets simpler and correcter. I've been struggling with the following problem: bridges have two memory ra

Re: [Qemu-devel] kvm PCI assignment & VFIO ramblings

2011-08-26 Thread Roedel, Joerg
On Fri, Aug 26, 2011 at 12:20:00AM -0400, David Gibson wrote: > On Wed, Aug 24, 2011 at 01:03:32PM +0200, Roedel, Joerg wrote: > > On Wed, Aug 24, 2011 at 05:33:00AM -0400, David Gibson wrote: > > > On Wed, Aug 24, 2011 at 11:14:26AM +0200, Roedel, Joerg wrote: > > > > > > I don't see a reason to

[Qemu-devel] Health Platform of Traditional Chinese Medicine

2011-08-26 Thread newsletter
 The original charm of traditional Chinese medicine lies in the following free and unique services:1 TCM Diagnosis Just a health list and a photo of the tongue coating needed, the expert of traditional Chinese medicine would make a professional diagnosis. Why not have a try?2 Health Plan A customiz

  1   2   >