Re: [Qemu-devel] [PATCH V8 0/5] VMXNET3 paravirtual NIC device implementation

2012-12-26 Thread Dmitry Fleytman
Hi Everyone Is there any progress with these patches? Is there a chance they will be committed any time soon? Thanks, Dmitry On Fri, Dec 7, 2012 at 1:15 PM, Dmitry Fleytman wrote: > This set of patches implements VMWare VMXNET3 paravirtual NIC device. > The device supports of all the device f

[Qemu-devel] [PATCH] fix include file in hw/loader.h

2012-12-26 Thread Wenchao Xia
Now header files have gone into includes, so include file path needs change also to avoid build break. Signed-off-by: Wenchao Xia --- hw/loader.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/loader.h b/hw/loader.h index 26480ad..5e61c95 100644 --- a/hw/loader.h

[Qemu-devel] [PULL] pci,virtio

2012-12-26 Thread Michael S. Tsirkin
Included here is v3 virtio typesafety change - no comments were made to v3 - I made my best to address all comment and got no response to v3 so I assume it's OK now. There are more optimizations in my tree but they are a bit more scary - I'll let them stay there as I'll be away for a week. The fo

[Qemu-devel] [PATCH 0/8] virtio-pci: msix masking optimizations

2012-12-26 Thread Michael S. Tsirkin
This patchset implements two msix masking optimizations. It works fine for me but I did not have the time to do performance testing yet so I do not know whether it helps and which workloads. Sending out now as I'll be on vacation for a week. Please review and comment. Thanks! Michael S. Tsirkin (

[Qemu-devel] [PATCH 2/8] msix: add api to access msix message

2012-12-26 Thread Michael S. Tsirkin
Will be used by virtio pci. Signed-off-by: Michael S. Tsirkin --- hw/pci/msix.c | 2 +- hw/pci/msix.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/pci/msix.c b/hw/pci/msix.c index 9eee657..e231a0d 100644 --- a/hw/pci/msix.c +++ b/hw/pci/msix.c @@ -27,7 +27,7 @@ #defin

[Qemu-devel] [PATCH 4/8] virtio-pci: cache msix messages

2012-12-26 Thread Michael S. Tsirkin
Some guests mask a vector then unmask without changing it. Store vectors to avoid kvm system calls in this case. Signed-off-by: Michael S. Tsirkin --- hw/virtio-pci.c | 119 ++-- hw/virtio-pci.h | 1 + 2 files changed, 100 insertions(+), 20 d

[Qemu-devel] [PATCH 8/8] vhost: backend masking support

2012-12-26 Thread Michael S. Tsirkin
Support backend guest notifier masking in vhost-net: create eventfd at device init, when masked, make vhost use that as eventfd instead of sending an interrupt. Signed-off-by: Michael S. Tsirkin --- hw/vhost.c | 95 + hw/vhost.h |

[Qemu-devel] [PATCH 7/8] vhost: set started flag while start is in progress

2012-12-26 Thread Michael S. Tsirkin
This makes it possible to use started flag for sanity checking of callbacks that happen during start/stop. Signed-off-by: Michael S. Tsirkin --- hw/vhost.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/vhost.c b/hw/vhost.c index b6d73ca..4fa5007 100644 --- a/hw/vh

[Qemu-devel] [PATCH 5/8] virtio: backend virtqueue notifier masking

2012-12-26 Thread Michael S. Tsirkin
some backends (notably vhost) can mask events at their source in a way that is more efficient than masking through kvm. Specifically - masking in kvm uses rcu write side so it has high latency - in kvm on unmask we always send an interrupt masking at source does not have these issues. Add such sup

[Qemu-devel] [PATCH 1/8] virtio: don't waste irqfds on control vqs

2012-12-26 Thread Michael S. Tsirkin
Pass nvqs to set_guest_notifiers. This makes it possible to save on irqfds by not allocating one for the control vq for virtio-net. Signed-off-by: Michael S. Tsirkin --- hw/vhost.c | 10 +++--- hw/virtio-pci.c | 19 ++- hw/virtio-pci.h | 1 + hw/virtio.h | 2 +- 4

[Qemu-devel] [PATCH 6/8] virtio-net: set/clear vhost_started in reverse order

2012-12-26 Thread Michael S. Tsirkin
As vhost started is cleared last thing on stop, set it first things on start. This makes it possible to use vhost_started while start is in progress which is used by follow-up patches. Signed-off-by: Michael S. Tsirkin --- hw/virtio-net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[Qemu-devel] [PATCH 3/8] kvm: add stub for update msi route

2012-12-26 Thread Michael S. Tsirkin
Will be used by virtio-pci. Signed-off-by: Michael S. Tsirkin --- kvm-stub.c | 5 + 1 file changed, 5 insertions(+) diff --git a/kvm-stub.c b/kvm-stub.c index 5b97152..81f8967 100644 --- a/kvm-stub.c +++ b/kvm-stub.c @@ -131,6 +131,11 @@ void kvm_irqchip_release_virq(KVMState *s, int virq)

[Qemu-devel] Graphics performance

2012-12-26 Thread Erik Rull
Hi all, which is the graphics emulation with the lowest CPU usage for 2D-only GUIs? (e.g. Win XP without Direct3D usage)? I just need to drive a virtual graphics display with 1024x768 (@16bit colors). At the moment I use the cirrus graphics card emulation. Is there something more efficient? T

Re: [Qemu-devel] [PATCH 6/6] usb-tablet: Allow connecting to ehci

2012-12-26 Thread Erik Rull
Hi Gerd, hi Hans, is my assumption correct that if I check out and compile this version from GIT master that the usb-tablet device is automatically routed to ehci without changing anything else in the qemu call arguments? (And the performance enhancement takes place automatically) If not - wh

Re: [Qemu-devel] Graphics performance

2012-12-26 Thread Dunrong Huang
On Wed, Dec 26, 2012 at 8:04 PM, Erik Rull wrote: > Hi all, > > which is the graphics emulation with the lowest CPU usage for 2D-only GUIs? > (e.g. Win XP without Direct3D usage)? I just need to drive a virtual > graphics display with 1024x768 (@16bit colors). At the moment I use the > cirrus grap

Re: [Qemu-devel] [PATCH 0/2 v2] introduce visitor for parsing suffixed integer

2012-12-26 Thread Eduardo Habkost
On Sun, Dec 23, 2012 at 02:34:21PM -0600, Anthony Liguori wrote: > Igor Mammedov writes: > > > v2: > > * Naming changes: > > - s/visit_type_uint_suffixed_int/visit_type_suffixed_int/ > > - use 'suffix_factor' instead of 'unit' > > * Added documentation to visit_type_suffixed_int() > >

Re: [Qemu-devel] Graphics performance

2012-12-26 Thread Erik Rull
Hi, thanks for your quick reply. Dunrong Huang wrote: On Wed, Dec 26, 2012 at 8:04 PM, Erik Rull wrote: Hi all, which is the graphics emulation with the lowest CPU usage for 2D-only GUIs? (e.g. Win XP without Direct3D usage)? I just need to drive a virtual graphics display with 1024x768 (@16

[Qemu-devel] [PATCH 0/2] [PULL] qemu-kvm.git uq/master queue

2012-12-26 Thread Gleb Natapov
The following changes since commit e376a788ae130454ad5e797f60cb70d0308babb6: Merge remote-tracking branch 'kwolf/for-anthony' into staging (2012-12-13 14:32:28 -0600) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master for you to fetch chan

[Qemu-devel] [PATCH 2/2] qemu-kvm/pci-assign: 64 bits bar emulation

2012-12-26 Thread Gleb Natapov
From: Xudong Hao Enable 64 bits bar emulation. Test pass with the current seabios which already support 64bit pci bars. Signed-off-by: Xudong Hao Reviewed-by: Alex Williamson Signed-off-by: Gleb Natapov --- hw/kvm/pci-assign.c | 14 ++ 1 file changed, 10 insertions(+), 4 delet

[Qemu-devel] [PATCH 1/2] target-i386: Enabling IA32_TSC_ADJUST for QEMU KVM guest VMs

2012-12-26 Thread Gleb Natapov
From: Will Auld CPUID.7.0.EBX[1]=1 indicates IA32_TSC_ADJUST MSR 0x3b is supported Basic design is to emulate the MSR by allowing reads and writes to the hypervisor vcpu specific locations to store the value of the emulated MSRs. In this way the IA32_TSC_ADJUST value will be included in all read

Re: [Qemu-devel] [PATCH] fix include file in hw/loader.h

2012-12-26 Thread Wenchao Xia
please ignore this mail, sorry for trouble. >Now header files have gone into includes, so include file path > needs change also to avoid build break. > > Signed-off-by: Wenchao Xia > --- > hw/loader.h |3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/hw/lo

Re: [Qemu-devel] [PATCH 6/6] usb-tablet: Allow connecting to ehci

2012-12-26 Thread Hao Luo
Erik, You can take a look at my recent post about usb tablet peforamnce over ehci, in which I mentioned a libvirt config of how to let usb tablet connect to ehci. 2012-12-26 Hao Luo 发件人:Erik Rull 发送时间:2012-12-26 20:08 主题:Re: [Qemu-devel] [PATCH 6/6] usb-tablet: Allow connecting to ehci 收件人

Re: [Qemu-devel] Graphics performance

2012-12-26 Thread Dunrong Huang
On Wed, Dec 26, 2012 at 9:22 PM, Erik Rull wrote: >>> which is the graphics emulation with the lowest CPU usage for 2D-only >>> GUIs? >>> (e.g. Win XP without Direct3D usage)? I just need to drive a virtual >>> graphics display with 1024x768 (@16bit colors). At the moment I use the >>> cirrus gra

Re: [Qemu-devel] [Bug 1093691] [NEW] QEMU build fails on OpenBSD/mips64

2012-12-26 Thread Richard Henderson
On 12/25/2012 01:12 PM, Brad Smith wrote: > Public bug reported: > > Building QEMU 1.2.1 on OpenBSD/mips64 fails as follows although I > believe QEMU was also broken with 1.1.x as well.. ... > In file included from /usr/obj/ports/qemu-1.2.1/qemu-1.2.1/tcg/tcg.c:50: > /usr/obj/ports/qemu-1.2.1/qemu

Re: [Qemu-devel] [PATCH 0/4] AER-KVM: Error containment of PCI pass-thru devices assigned to KVM guests

2012-12-26 Thread Bjorn Helgaas
On Mon, Nov 26, 2012 at 11:46 PM, Gleb Natapov wrote: > On Mon, Nov 26, 2012 at 09:46:12PM -0200, Marcelo Tosatti wrote: >> On Tue, Nov 20, 2012 at 02:09:46PM +, Pandarathil, Vijaymohan R wrote: >> > >> > >> > > -Original Message- >> > > From: Stefan Hajnoczi [mailto:stefa...@gmail.com

Re: [Qemu-devel] [RFC] lively write vmstate with predictable size

2012-12-26 Thread Wenchao Xia
> Hi, Juan >Thank u for reviewing on this, have some questions below. > >> Wenchao Xia wrote: >>> resent the mail to mail-list. >>> --- >>> >>> Hi, Paolo and Juan >>> Currently savevm needs pause vm, and I am working on that make it >>>lively. Considering the flexibi

[Qemu-devel] Translate GFN to ram_addr

2012-12-26 Thread YoungJoon Lee
Hello, I'm learning about qemu migration. My qemu version is 0.13.0 I want to translate GFN(which is Guest physical address >> 12) to ram_addr. I found cpu_get_physical_page_desc function, which i guess this translation. I tried next code but it's result is not i want to.(wrong address returned)

Re: [Qemu-devel] [Bug 1093691] [NEW] QEMU build fails on OpenBSD/mips64

2012-12-26 Thread Brad Smith
On Wed, Dec 26, 2012 at 09:55:38AM -0800, Richard Henderson wrote: > On 12/25/2012 01:12 PM, Brad Smith wrote: > > Public bug reported: > > > > Building QEMU 1.2.1 on OpenBSD/mips64 fails as follows although I > > believe QEMU was also broken with 1.1.x as well.. > ... > > In file included from /u

Re: [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

2012-12-26 Thread Brad Smith
On Thu, Dec 13, 2012 at 04:26:50PM +0800, Zhi Yong Wu wrote: > On Thu, Dec 6, 2012 at 12:02 PM, Brad Smith <1087...@bugs.launchpad.net> > wrote: > > Public bug reported: > > > > QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the > > command line params do not seem to matter. >

[Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

2012-12-26 Thread Brad Smith
Paolo, As you wrote the fallback code which is used when sem_timedwait() is missing could you please take a look at this when you have some time? I can test any patches you might come up with. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed t

[Qemu-devel] [PATCH KVM v2 4/4] KVM: i8259: refactor pic_set_irq level logic

2012-12-26 Thread Matthew Ogilvie
No change in functionality. Clarify that the only difference between level triggered and edge triggered interrupts is on the leading edge. Signed-off-by: Matthew Ogilvie --- arch/x86/kvm/i8259.c | 28 +++- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/a

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

2012-12-26 Thread Matthew Ogilvie
Reading the spec, it is clear that most modes normally leave the IRQ output line high, and only pulse it low to generate a leading edge. Especially the most commonly used mode 2. The KVM i8254 model does not try to emulate the duration of the pulse at all, so just swap the high/low settings it to

[Qemu-devel] [PATCH KVM v2 0/4] fix KVM i8259 IRQ trailing-edge logic

2012-12-26 Thread Matthew Ogilvie
Changes since version 1 (from Sep 9): * Split off patch 1; this is the critical prerequisite to make the i8254 work with the fixed i8259. * Add patch 2, to make additional changes to the i8254 to make it consistent with the spec and with proposed changes to qemu's i8254 model.

[Qemu-devel] [PATCH KVM v2 3/4] KVM: fix i8259 interrupt high to low transition logic

2012-12-26 Thread Matthew Ogilvie
Intel's definition of "edge triggered" means: "asserted with a low-to-high transition at the time an interrupt is registered and then kept high until the interrupt is served via one of the EOI mechanisms or goes away unhandled." So the only difference between edge triggered and level triggered is

[Qemu-devel] [PATCH KVM v2 2/4] KVM: additional i8254 output fixes

2012-12-26 Thread Matthew Ogilvie
Make git_get_out() consistent with spec. Currently pit_get_out() doesn't affect IRQ0, but it can be read by the guest in other ways. This makes it consistent with proposed changes in qemu's i8254 model as well. See http://bochs.sourceforge.net/techspec/intel-82c54-timer.pdf.gz or search the net f