Re: [PATCH] virtio-net: Read MAC only after initializing MSI-X

2011-09-19 Thread Michael S. Tsirkin
On Mon, Sep 19, 2011 at 01:05:17PM +0930, Rusty Russell wrote: On Sat, 20 Aug 2011 23:00:44 +0300, Michael S. Tsirkin m...@redhat.com wrote: On Fri, Aug 19, 2011 at 07:33:07PM +0300, Sasha Levin wrote: Maybe this is better solved by copying the way it was done in PCI itself with

Re: qemu-kvm 0.15 usb problem

2011-09-19 Thread Gerd Hoffmann
On 09/16/11 18:22, Thomas Beinicke wrote: I am experiencing the same problem with version 0.15 while 0.14 works flawless. We're using it for an USB ISDN card which freezes the windows host with qemu-kvm 0.15 when plugged in while the system is already running or it completely prevents the

[SEABIOS PATCH 0/2] fix of hotplug multi-func device

2011-09-19 Thread Amos Kong
Hotplug multi-func device doesn't work, only func 0 are regiestered to guest pci driver, this patchset just add device entry in ACPI DSDT tables for all functions in the slot. --- Amos Kong (2): Fix regression of commit 87b533bf hotplug: Add device per func in ACPI DSDT tables 0

[SeaBIOS PATCH 1/2] Fix regression of commit 87b533bf

2011-09-19 Thread Amos Kong
After adding more device entries in ACPI DSDT tables, the filesize of bios.bin changed from 128K to 256K. But bios could not initialize successfully. This is a regression since seabios commit 87b533bf. Prior to that commit, seabios did not mark the early 32bit initialization code as init code.

[SeaBIOS PATCH 2/2] hotplug: Add device per func in ACPI DSDT tables

2011-09-19 Thread Amos Kong
Only func 0 is registered to guest driver (we can only found func 0 in slot-funcs list of driver), the other functions could not be cleaned when hot-removing the whole slot. This patch adds device per function in ACPI DSDT tables. Have tested with linux/winxp/win7, hot-adding/hot-remving,

Re: Memory API code review

2011-09-19 Thread Peter Maydell
On 14 September 2011 16:07, Avi Kivity a...@redhat.com wrote: I would like to carry out an online code review of the memory API so that more people are familiar with the internals, and perhaps even to catch some bugs or deficiency.  I'd like to use the next kvm conference call slot for this

Re: [net-next RFC V2 PATCH 0/5] Multiqueue support in tun/tap

2011-09-19 Thread Jason Wang
On 09/18/2011 03:17 AM, Michael S. Tsirkin wrote: On Sat, Sep 17, 2011 at 02:02:04PM +0800, Jason Wang wrote: A wiki-page was created to narrate the detail design of all parts involved in the multi queue implementation: http://www.linux-kvm.org/page/Multiqueue and some basic tests result could

Re: [SeaBIOS PATCH 2/2] hotplug: Add device per func in ACPI DSDT tables

2011-09-19 Thread Michael S. Tsirkin
On Mon, Sep 19, 2011 at 12:36:44PM +0300, Michael S. Tsirkin wrote: On Mon, Sep 19, 2011 at 02:53:47PM +0800, Amos Kong wrote: Only func 0 is registered to guest driver (we can only found func 0 in slot-funcs list of driver), the other functions could not be cleaned when hot-removing the

Re: [PATCH v8 3/4] block: add block timer and throttling algorithm

2011-09-19 Thread Zhi Yong Wu
On Wed, Sep 14, 2011 at 6:50 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Sep 13, 2011 at 11:09:46AM +0800, Zhi Yong Wu wrote: On Fri, Sep 9, 2011 at 10:44 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Thu, Sep 08, 2011 at 06:11:07PM +0800, Zhi Yong Wu wrote: Note:      1.)

Re: [SeaBIOS] [SeaBIOS PATCH 2/2] hotplug: Add device per func in ACPI DSDT tables

2011-09-19 Thread Gleb Natapov
On Mon, Sep 19, 2011 at 03:27:38AM -0400, Amos Kong wrote: Only func 0 is registered to guest driver (we can only found func 0 in slot-funcs list of driver), the other functions could not be cleaned when hot-removing the whole slot. This patch adds device per function in ACPI DSDT tables.

Re: [SeaBIOS] [SeaBIOS PATCH 2/2] hotplug: Add device per func in ACPI DSDT tables

2011-09-19 Thread Michael S. Tsirkin
On Mon, Sep 19, 2011 at 12:57:33PM +0300, Gleb Natapov wrote: On Mon, Sep 19, 2011 at 03:27:38AM -0400, Amos Kong wrote: Only func 0 is registered to guest driver (we can only found func 0 in slot-funcs list of driver), the other functions could not be cleaned when hot-removing the

Re: [SeaBIOS PATCH 2/2] hotplug: Add device per func in ACPI DSDT tables

2011-09-19 Thread Michael S. Tsirkin
On Mon, Sep 19, 2011 at 12:36:44PM +0300, Michael S. Tsirkin wrote: On Mon, Sep 19, 2011 at 02:53:47PM +0800, Amos Kong wrote: Only func 0 is registered to guest driver (we can only found func 0 in slot-funcs list of driver), the other functions could not be cleaned when hot-removing the

Re: [SeaBIOS] [SeaBIOS PATCH 2/2] hotplug: Add device per func in ACPI DSDT tables

2011-09-19 Thread Gleb Natapov
On Mon, Sep 19, 2011 at 01:02:59PM +0300, Michael S. Tsirkin wrote: On Mon, Sep 19, 2011 at 12:57:33PM +0300, Gleb Natapov wrote: On Mon, Sep 19, 2011 at 03:27:38AM -0400, Amos Kong wrote: Only func 0 is registered to guest driver (we can only found func 0 in slot-funcs list of

Re: [SeaBIOS] [SeaBIOS PATCH 2/2] hotplug: Add device per func in ACPI DSDT tables

2011-09-19 Thread Gleb Natapov
On Mon, Sep 19, 2011 at 01:12:30PM +0300, Gleb Natapov wrote: On Mon, Sep 19, 2011 at 01:02:59PM +0300, Michael S. Tsirkin wrote: On Mon, Sep 19, 2011 at 12:57:33PM +0300, Gleb Natapov wrote: On Mon, Sep 19, 2011 at 03:27:38AM -0400, Amos Kong wrote: Only func 0 is registered to

Re: .img on nfs, relative on ram, consuming mass ram

2011-09-19 Thread Rickard Lundin
Hi ! Here's my config : Version : qemu-kvm-0.12.5, qemu-kvm-0.12.4 Hosts : AMD 64X2, Phenom and Core 2 duo OS : Slackware 64 13.0 Kernel : 2.6.35.4 and many previous versions I use a PXE server to boot semi-diskless (swap partitions and some local stuff) stations. This server also

Re: [SeaBIOS] [SeaBIOS PATCH 2/2] hotplug: Add device per func in ACPI DSDT tables

2011-09-19 Thread Michael S. Tsirkin
On Mon, Sep 19, 2011 at 01:32:48PM +0300, Gleb Natapov wrote: I recall I saw some examples like this on the net. Checking real HW DSDT will validate that we are doing a right thing here. According to Microsoft own documentation they want _EJ0 for each function:

Re: [RFC] KVM: Fix simultaneous NMIs

2011-09-19 Thread Marcelo Tosatti
On Thu, Sep 15, 2011 at 08:48:58PM +0300, Avi Kivity wrote: On 09/15/2011 08:25 PM, Jan Kiszka wrote: I think so. Suppose the vcpu enters just after kvm_make_request(); it sees KVM_REQ_EVENT and clears it, but doesn't see nmi_pending because it wasn't set set. Then comes a kick, the

Re: [PATCH] kvm, mmu: fix incorrect return of spte

2011-09-19 Thread Marcelo Tosatti
On Mon, Sep 19, 2011 at 12:19:51PM +0800, Zhao Jin wrote: __update_clear_spte_slow should return original spte while the current code returns low half of original spte combined with high half of new spte. Signed-off-by: Zhao Jin crono...@gmail.com --- arch/x86/kvm/mmu.c |3 ++- 1

Re: [PATCH] kvm tool: get rid of entire setnet handling

2011-09-19 Thread Pekka Enberg
On Sun, Sep 18, 2011 at 11:47 PM, Hagen Paul Pfeifer ha...@jauu.net wrote: 7eeef124e30ca2123f removes setnet.sh handling through build-in nfs dhcp client. This patch get rid of kvm setup functionality to copy the now non-existing setnet script. Otherwise kvm setup is silently aborted.

Re: [RFC] KVM: Fix simultaneous NMIs

2011-09-19 Thread Avi Kivity
On 09/19/2011 04:54 PM, Marcelo Tosatti wrote: Yes, due to NMI-blocked-by-STI. A really touchy area. And we don't need the window exit notification then? I don't understand what nmi_in_progress is supposed to do here. We need the window notification in both cases. If we're

Re: [net-next RFC V2 PATCH 0/5] Multiqueue support in tun/tap

2011-09-19 Thread Ben Hutchings
On Sat, 2011-09-17 at 14:02 +0800, Jason Wang wrote: [...] 2 Current implementation may also get regression for single session packet transmission. The reason is packets from each flow were not handled by the same queue/vhost thread. Various method could be done to handle this: 2.1

Re: [RFC] KVM: Fix simultaneous NMIs

2011-09-19 Thread Marcelo Tosatti
On Mon, Sep 19, 2011 at 05:30:27PM +0300, Avi Kivity wrote: On 09/19/2011 04:54 PM, Marcelo Tosatti wrote: Yes, due to NMI-blocked-by-STI. A really touchy area. And we don't need the window exit notification then? I don't understand what nmi_in_progress is supposed to do here.

Re: [RFC] KVM: Fix simultaneous NMIs

2011-09-19 Thread Avi Kivity
On 09/19/2011 05:54 PM, Marcelo Tosatti wrote: On Mon, Sep 19, 2011 at 05:30:27PM +0300, Avi Kivity wrote: On 09/19/2011 04:54 PM, Marcelo Tosatti wrote: Yes, due to NMI-blocked-by-STI. A really touchy area. And we don't need the window exit notification then? I don't

Re: [RFC] KVM: Fix simultaneous NMIs

2011-09-19 Thread Avi Kivity
On 09/19/2011 06:09 PM, Avi Kivity wrote: On 09/19/2011 05:54 PM, Marcelo Tosatti wrote: On Mon, Sep 19, 2011 at 05:30:27PM +0300, Avi Kivity wrote: On 09/19/2011 04:54 PM, Marcelo Tosatti wrote: Yes, due to NMI-blocked-by-STI. A really touchy area. And we don't need the window

Re: RFC [v2]: vfio / device assignment -- layout of device fd files

2011-09-19 Thread Alex Williamson
On Fri, 2011-09-09 at 08:11 -0500, Stuart Yoder wrote: Based on the discussions over the last couple of weeks I have updated the device fd file layout proposal and tried to specify it a bit more formally. === 1. Overview

Re: [RFC] KVM: Fix simultaneous NMIs

2011-09-19 Thread Marcelo Tosatti
On Mon, Sep 19, 2011 at 06:09:39PM +0300, Avi Kivity wrote: On 09/19/2011 05:54 PM, Marcelo Tosatti wrote: On Mon, Sep 19, 2011 at 05:30:27PM +0300, Avi Kivity wrote: On 09/19/2011 04:54 PM, Marcelo Tosatti wrote: Yes, due to NMI-blocked-by-STI. A really touchy area.

Re: [RFC] KVM: Fix simultaneous NMIs

2011-09-19 Thread Avi Kivity
On 09/19/2011 06:22 PM, Marcelo Tosatti wrote: On Mon, Sep 19, 2011 at 06:09:39PM +0300, Avi Kivity wrote: On 09/19/2011 05:54 PM, Marcelo Tosatti wrote: On Mon, Sep 19, 2011 at 05:30:27PM +0300, Avi Kivity wrote: On 09/19/2011 04:54 PM, Marcelo Tosatti wrote:

Re: [RFC] KVM: Fix simultaneous NMIs

2011-09-19 Thread Marcelo Tosatti
On Mon, Sep 19, 2011 at 06:37:35PM +0300, Avi Kivity wrote: On 09/19/2011 06:22 PM, Marcelo Tosatti wrote: On Mon, Sep 19, 2011 at 06:09:39PM +0300, Avi Kivity wrote: On 09/19/2011 05:54 PM, Marcelo Tosatti wrote: On Mon, Sep 19, 2011 at 05:30:27PM +0300, Avi Kivity wrote: On

Re: [SeaBIOS] [SeaBIOS PATCH 2/2] hotplug: Add device per func in ACPI DSDT tables

2011-09-19 Thread Marcelo Tosatti
On Mon, Sep 19, 2011 at 01:02:59PM +0300, Michael S. Tsirkin wrote: On Mon, Sep 19, 2011 at 12:57:33PM +0300, Gleb Natapov wrote: On Mon, Sep 19, 2011 at 03:27:38AM -0400, Amos Kong wrote: Only func 0 is registered to guest driver (we can only found func 0 in slot-funcs list of

Re: [RFC PATCH 3/5] VFIO: Base framework for new VFIO driver

2011-09-19 Thread Alex Williamson
Sorry for the delay, just getting back from LPC and some time off... On Wed, 2011-09-07 at 10:52 -0400, Konrad Rzeszutek Wilk wrote: +static long vfio_iommu_unl_ioctl(struct file *filep, +unsigned int cmd, unsigned long arg) +{ + struct vfio_iommu *viommu =

Re: [IPXE PATCH] [dhcp] Use random transaction ID to associate messages

2011-09-19 Thread Michael Brown
On Sunday 18 Sep 2011 02:21:04 Amos Kong wrote: Users may boot up a QEMU guest without default mac address, it's easy to repeat, it always to be failed to get IP with PXE boot. RFC suggests us to use random xid, it's necessary. This patch generates random id when start dhcp, and record it to

Re: Temporary kvm and qemu git repositories

2011-09-19 Thread Michael S. Tsirkin
On Wed, Aug 31, 2011 at 06:38:28PM +0300, Avi Kivity wrote: Since master.kernel.org is down for maintenance, I've set up temporary repositories on github: git://github.com/avikivity/kvm.git git://github.com/avikivity/qemu.git Please use these instead of kvm.git and qemu-kvm.git until

Re: [SeaBIOS] [SeaBIOS PATCH 2/2] hotplug: Add device per func in ACPI DSDT tables

2011-09-19 Thread Michael S. Tsirkin
On Mon, Sep 19, 2011 at 01:27:25PM -0300, Marcelo Tosatti wrote: On Mon, Sep 19, 2011 at 01:02:59PM +0300, Michael S. Tsirkin wrote: On Mon, Sep 19, 2011 at 12:57:33PM +0300, Gleb Natapov wrote: On Mon, Sep 19, 2011 at 03:27:38AM -0400, Amos Kong wrote: Only func 0 is registered to

Re: RFC [v2]: vfio / device assignment -- layout of device fd files

2011-09-19 Thread Scott Wood
On 09/19/2011 10:16 AM, Alex Williamson wrote: On Fri, 2011-09-09 at 08:11 -0500, Stuart Yoder wrote: 2. Header The header is located at offset 0x0 in the device fd and has the following format: struct devfd_header { __u32 magic; __u32 version; __u32 flags;

Re: RFC [v2]: vfio / device assignment -- layout of device fd files

2011-09-19 Thread Alex Williamson
On Mon, 2011-09-19 at 14:37 -0500, Scott Wood wrote: On 09/19/2011 10:16 AM, Alex Williamson wrote: On Fri, 2011-09-09 at 08:11 -0500, Stuart Yoder wrote: 2. Header The header is located at offset 0x0 in the device fd and has the following format: struct devfd_header {

Re: RFC [v2]: vfio / device assignment -- layout of device fd files

2011-09-19 Thread Scott Wood
On 09/19/2011 04:07 PM, Alex Williamson wrote: On Mon, 2011-09-19 at 14:37 -0500, Scott Wood wrote: A DTPATH as a record, an INTERRUPT as a sub-record, etc. Same as any other unrecognized (sub)record type, you ignore it -- but the kernel should not be generating this. I'm trying to express

Re: Memmory and CPU Ballooning

2011-09-19 Thread day knight
Does any one know how to do this? thank you kindly On Sun, Sep 18, 2011 at 10:40 PM, day knight back2ga...@gmail.com wrote: Is it possible and if yes then how. Can we increase the memory on a live guest machine without having to shutdown or reboot as well as increase and decrease CPUs. if it

[PATCH] e1000: Don't set the Capabilities List bit

2011-09-19 Thread dann frazier
The Capabilities Pointer is NULL, so this bit shouldn't be set. The state of this bit doesn't appear to change any behavior on Linux/Windows versions we've tested, but it does cause Windows' PCI/PCI Express Compliance Test to balk. I happen to have a physical 82540EM controller, and it also sets

Re: [PATCH] virtio-net: Read MAC only after initializing MSI-X

2011-09-19 Thread Rusty Russell
On Mon, 19 Sep 2011 09:01:50 +0300, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Sep 19, 2011 at 01:05:17PM +0930, Rusty Russell wrote: On Sat, 20 Aug 2011 23:00:44 +0300, Michael S. Tsirkin m...@redhat.com wrote: On Fri, Aug 19, 2011 at 07:33:07PM +0300, Sasha Levin wrote:

[PATCH] KVM: PPC: E500: Support hugetlbfs

2011-09-19 Thread Alexander Graf
With hugetlbfs support emerging on e500, we should also support KVM backing its guest memory by it. This patch adds support for hugetlbfs into the e500 shadow mmu code. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/kvm/e500_tlb.c | 22 ++ 1 files changed, 22

Re: Memmory and CPU Ballooning

2011-09-19 Thread Emmanuel Noobadmin
On 9/19/11, day knight back2ga...@gmail.com wrote: Is it possible and if yes then how. Can we increase the memory on a live guest machine without having to shutdown or reboot as well as increase and decrase CPUs. if it is possible, can some one point me to the documentation :) Chipping in my

Re: [PATCH 3/5] KVM: PPC: Paravirtualize SPRG4-7, ESR, PIR, MASn

2011-09-19 Thread Alexander Graf
On 15.09.2011, at 20:26, Scott Wood wrote: On 09/05/2011 05:28 PM, Alexander Graf wrote: + /* +* SPRG4-7 are user-readable, so we can't keep these +* consistent between the magic page and the real +* registers. We provide space in case the guest +* can deal with this. +

Re: [PATCH 5/5] KVM: PPC: booke: Improve timer register emulation

2011-09-19 Thread Alexander Graf
On 15.09.2011, at 22:52, Scott Wood wrote: On 09/08/2011 10:39 AM, Alexander Graf wrote: On 08.09.2011, at 17:34, Scott Wood wrote: On Wed, Sep 07, 2011 at 12:41:35PM +0200, Alexander Graf wrote: Yes, but why can't we do this in the vcpu thread's context so we only ever have a single

[PATCH] KVM: PPC: E500: Support hugetlbfs

2011-09-19 Thread Alexander Graf
With hugetlbfs support emerging on e500, we should also support KVM backing its guest memory by it. This patch adds support for hugetlbfs into the e500 shadow mmu code. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/kvm/e500_tlb.c | 22 ++ 1 files changed, 22