Re: Guest floppy regression hits qemu-kvm, qemu is not affected

2011-11-20 Thread Avi Kivity
On 11/18/2011 04:06 PM, Lucas Meneghel Rodrigues wrote: > Hi guys, > > Today during the last 'sanity' qemu-kvm testing, we've noticed a > recurring problem: guest OS does not see the floppy, making the > windows installs time out. This problem has been extensively discussed > on qemu and qemu is fi

KVM updates for 3.2-rc2

2011-11-20 Thread Avi Kivity
Linus, please pull from: git://git.kernel.org/pub/scm/virt/kvm/kvm.git kvm-updates/3.2 This includes a ppc ABI breakage fix, s390 fixes, a tracing/kvmclock conflict fix, and the implementation of guest-only/host-only profiling for Intel. The latter is not strictly a fix, and missed the merge w

[GIT PULL] KVM updates for 3.2-rc2

2011-11-20 Thread Avi Kivity
(now with [GIT PULL] for filters) Linus, please pull from: git://git.kernel.org/pub/scm/virt/kvm/kvm.git kvm-updates/3.2 This includes a ppc ABI breakage fix, s390 fixes, a tracing/kvmclock conflict fix, and the implementation of guest-only/host-only profiling for Intel. The latter is not str

Re: [Qemu-devel] [PATCH v2] ivshmem: add a new PIO BAR3(Doorbell) besides MMIO BAR0 to reduce notification time

2011-11-20 Thread Avi Kivity
On 11/18/2011 07:50 AM, zanghongy...@huawei.com wrote: > From: Hongyong Zang > > This patch, adds a PIO BAR3 for guest notifying qemu. And we find the new > notification way of PIO BAR3 reduces 30% time in comparison with the original > MMIO BAR0 way. Please update the spec, and split the patch

RE: [RFC v2 PATCH] kvm tools, qcow: Add the support for copy-on-write clusters

2011-11-20 Thread Pekka Enberg
On Sun, 2011-11-20 at 14:14 +0800, Lan, Tianyu wrote: > > OK. Thx. > > But fsync is too slow. I try to find a way to sync a range of file. > > Are there any solutions to meet my purpose? On Sun, 2011-11-20 at 08:23 +0200, Sasha Levin wrote: > fdatasync() is as good as it'll get. > > tbh, maybe w

Re: [PATCH v2 3/6] KVM: introduce kvm_for_each_memslot macro

2011-11-20 Thread Avi Kivity
On 11/18/2011 11:18 AM, Xiao Guangrong wrote: > index bb8728e..10524c0 100644 > --- a/include/linux/kvm_host.h > +++ b/include/linux/kvm_host.h > @@ -307,6 +307,10 @@ static inline struct kvm_vcpu *kvm_get_vcpu(struct kvm > *kvm, int i) >(vcpup = kvm_get_vcpu(kvm, idx)) != NULL; \ >

Re: [PATCH v2 5/6] KVM: sort memslots by its size and use line search

2011-11-20 Thread Avi Kivity
On 11/18/2011 11:19 AM, Xiao Guangrong wrote: > Sort memslots base on its size and use line search to find it, so the larger > memslots have better fit > > The idea is from Avi > > Signed-off-by: Xiao Guangrong > --- > include/linux/kvm_host.h | 22 +--- > virt/kvm/kvm_main.c | 8

Re: [PATCH v2 5/6] KVM: sort memslots by its size and use line search

2011-11-20 Thread Avi Kivity
On 11/20/2011 01:26 PM, Avi Kivity wrote: > > > > int kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id); > > void kvm_vcpu_uninit(struct kvm_vcpu *vcpu); > > @@ -335,7 +340,14 @@ static inline struct kvm_memslots *kvm_memslots(struct > > kvm *kvm) > > static inline struct kvm_m

Re: [PATCH v2 0/6] KVM: optimize memslots searching

2011-11-20 Thread Avi Kivity
On 11/18/2011 11:16 AM, Xiao Guangrong wrote: > This is the more work base on my v1 patchset which is posted some months ago, > it can be found at: > https://lkml.org/lkml/2011/2/22/68 > > Change log: > - sort memslots base on its size and do the line search instead of binary > search base on gfn

Re: [patch 3/4] [PATCH] kvm: Fix tprot locking

2011-11-20 Thread Avi Kivity
On 11/17/2011 01:15 PM, Martin Schwidefsky wrote: > On Thu, 17 Nov 2011 12:27:41 +0200 > Avi Kivity wrote: > > > On 11/17/2011 12:00 PM, Carsten Otte wrote: > > > From: Christian Borntraeger > > > > > > There is a potential host deadlock in the tprot intercept handling. > > > We must not hold th

Re: [patch 3/4] [PATCH] kvm: Fix tprot locking

2011-11-20 Thread Avi Kivity
On 11/17/2011 01:32 PM, Martin Schwidefsky wrote: > On Thu, 17 Nov 2011 12:15:52 +0100 > Martin Schwidefsky wrote: > > > On Thu, 17 Nov 2011 12:27:41 +0200 > > Avi Kivity wrote: > > > > > On 11/17/2011 12:00 PM, Carsten Otte wrote: > > > > From: Christian Borntraeger > > > > > > > > There is a

Re: [PATCH v2 0/6] KVM: optimize memslots searching

2011-11-20 Thread Avi Kivity
On 11/20/2011 01:29 PM, Avi Kivity wrote: > On 11/18/2011 11:16 AM, Xiao Guangrong wrote: > > This is the more work base on my v1 patchset which is posted some months > > ago, > > it can be found at: > > https://lkml.org/lkml/2011/2/22/68 > > > > Change log: > > - sort memslots base on its size an

KVM device assignment and user privileges

2011-11-20 Thread Sasha Levin
Hi all, I've been working on adding device assignment to KVM tools, and started with the basics of just getting a device assigned using the KVM_ASSIGN_PCI_DEVICE ioctl. What I've figured is that unprivileged users can request any PCI device to be assigned to him, including devices which he should

Re: KVM device assignment and user privileges

2011-11-20 Thread Avi Kivity
On 11/20/2011 04:58 PM, Sasha Levin wrote: > Hi all, > > I've been working on adding device assignment to KVM tools, and started > with the basics of just getting a device assigned using the > KVM_ASSIGN_PCI_DEVICE ioctl. > > What I've figured is that unprivileged users can request any PCI device >

Re: [net-next-2.6 PATCH 0/6 v4] macvlan: MAC Address filtering support for passthru mode

2011-11-20 Thread Roopa Prabhu
On 11/17/11 4:15 PM, "Ben Hutchings" wrote: > Sorry to come to this rather late. > > On Tue, 2011-11-08 at 23:55 -0800, Roopa Prabhu wrote: > [...] >> v2 -> v3 >> - Moved set and get filter ops from rtnl_link_ops to netdev_ops >> - Support for SRIOV VFs. >> [Note: The get filters msg

[PATCHv4 0/3] acpi: DSDT/SSDT runtime patching

2011-11-20 Thread Michael S. Tsirkin
Here's an updated revision of acpi runtime patching patchset. Lightly tested. changes in v4: - split PCI hotplug handling out to a separate SSDT Changes in v3: - change ssdt generation code to get rid of hardcoded offsets - enhancements to acpi_extract: add more extract me

[PATCHv4 1/3] acpi: add ssdt for pci hotplug

2011-11-20 Thread Michael S. Tsirkin
The point of this split is to make runtime patching easier. DSDT is required to supply: PCI0 - PCI root device object; PCEJ - Method object to eject a PCI slot. Additionally, SSDT is required to supply PCNT - Method object to notify OSPM of a PCI slot event. Signed-off-by: Michael S. Tsirkin ---

[PATCHv4 2/3] acpi: EJ0 method name patching

2011-11-20 Thread Michael S. Tsirkin
Modify ACPI to only supply _EJ0 methods for PCI slots that support hotplug. This is done by runtime patching: - Instrument SSDT ASL code with ACPI_EXTRACT directives tagging _EJ0 and _ADR fields. - At compile time, tools/acpi_extract.py looks for these methods in ASL source finds the matching

[PATCHv4 3/3] acpi: remove _RMV

2011-11-20 Thread Michael S. Tsirkin
The macro gen_pci_device is used to add _RMV method to a slot device so it is no longer needed: presence of _EJ0 now indicates that the slot is ejectable. It is also placing two devices with the same _ADR on the same bus, which isn't defined by the ACPI spec. So let's remove it. Signed-off-by: Mic

Failure to compile qemu-kvm - "In file included from /home/ykaul/qemu-kvm/hw/pci.c:36:0: ./qmp-commands.h:3:1: error: expected identifier or ‘(’ before ‘{’ token"

2011-11-20 Thread Yaniv Kaul
Latest git hash 1d1c8a498b7ce5c5636f1014f7ad18aa4e1acc0a (though I think it happened before that). ./configure command line: --target-list=x86_64-softmmu --enable-vnc-thread --audio-card-list=hda --disable-nptl --disable-guest-base --enable-spice --disable-werror --disable-usb-redir --disable-

Re: [PATCHv4 0/3] acpi: DSDT/SSDT runtime patching

2011-11-20 Thread Kevin O'Connor
On Sun, Nov 20, 2011 at 07:56:43PM +0200, Michael S. Tsirkin wrote: > Here's an updated revision of acpi runtime patching patchset. > Lightly tested. It looks good to me. -Kevin -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org

Re: [PATCH v2 3/6] KVM: introduce kvm_for_each_memslot macro

2011-11-20 Thread Takuya Yoshikawa
(2011/11/20 20:21), Avi Kivity wrote: On 11/18/2011 11:18 AM, Xiao Guangrong wrote: index bb8728e..10524c0 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -307,6 +307,10 @@ static inline struct kvm_vcpu *kvm_get_vcpu(struct kvm *kvm, int i) (vcpup = kvm_get_

Re: [RFC PATCH] vfio: VFIO Driver core framework

2011-11-20 Thread David Gibson
On Fri, Nov 18, 2011 at 01:32:56PM -0700, Alex Williamson wrote: > On Thu, 2011-11-17 at 11:02 +1100, David Gibson wrote: > > On Tue, Nov 15, 2011 at 11:01:28AM -0700, Alex Williamson wrote: > > > On Tue, 2011-11-15 at 17:34 +1100, David Gibson wrote: > > > > On Thu, Nov 03, 2011 at 02:12:24PM -060

Re: [PATCH v2 3/6] KVM: introduce kvm_for_each_memslot macro

2011-11-20 Thread Xiao Guangrong
On 11/20/2011 07:21 PM, Avi Kivity wrote: > On 11/18/2011 11:18 AM, Xiao Guangrong wrote: >> index bb8728e..10524c0 100644 >> --- a/include/linux/kvm_host.h >> +++ b/include/linux/kvm_host.h >> @@ -307,6 +307,10 @@ static inline struct kvm_vcpu *kvm_get_vcpu(struct kvm >> *kvm, int i) >>

Re: [RFC] kvm tools: Implement multiple VQ for virtio-net

2011-11-20 Thread Rusty Russell
On Wed, 16 Nov 2011 09:23:17 +0200, "Michael S. Tsirkin" wrote: > On Wed, Nov 16, 2011 at 10:34:42AM +1030, Rusty Russell wrote: > > On Mon, 14 Nov 2011 15:05:07 +0200, "Michael S. Tsirkin" > > wrote: > > > On Mon, Nov 14, 2011 at 02:25:17PM +0200, Pekka Enberg wrote: > > > > On Mon, Nov 14, 20

Re: [RFC 1/5] virtio-pci: flexible configuration layout

2011-11-20 Thread Rusty Russell
On Tue, 15 Nov 2011 01:43:13 +0200, Sasha Levin wrote: > From: "Michael S. Tsirkin" > > Add a flexible mechanism to specify virtio configuration layout, using > pci vendor-specific capability. A separate capability is used for each > of common, device specific and data-path accesses. OK, a cou

Re: [PATCH 5 of 5] virtio: expose added descriptors immediately

2011-11-20 Thread Rusty Russell
On Wed, 16 Nov 2011 09:18:38 +0200, "Michael S. Tsirkin" wrote: > My unlocked kick patches will trip this warning: they make > virtio-net do add + get without kick. Heh, it's a good sign if they do, since that means you're running really well :) > I think block with unlocked kick can trip it to

Re: [PATCH v2 5/6] KVM: sort memslots by its size and use line search

2011-11-20 Thread Xiao Guangrong
On 11/20/2011 07:26 PM, Avi Kivity wrote: > On 11/18/2011 11:19 AM, Xiao Guangrong wrote: >> Sort memslots base on its size and use line search to find it, so the larger >> memslots have better fit >> >> The idea is from Avi >> >> Signed-off-by: Xiao Guangrong >> --- >> include/linux/kvm_host.h

Re: [PATCH v2 0/6] KVM: optimize memslots searching

2011-11-20 Thread Xiao Guangrong
On 11/20/2011 08:12 PM, Avi Kivity wrote: > On 11/20/2011 01:29 PM, Avi Kivity wrote: >> On 11/18/2011 11:16 AM, Xiao Guangrong wrote: >>> This is the more work base on my v1 patchset which is posted some months >>> ago, >>> it can be found at: >>> https://lkml.org/lkml/2011/2/22/68 >>> >>> Chang

Re: KVM device assignment and user privileges

2011-11-20 Thread Chris Wright
* Avi Kivity (a...@redhat.com) wrote: > On 11/20/2011 04:58 PM, Sasha Levin wrote: > > Hi all, > > > > I've been working on adding device assignment to KVM tools, and started > > with the basics of just getting a device assigned using the > > KVM_ASSIGN_PCI_DEVICE ioctl. > > > > What I've figured i

[PATCH] kvm tools, qcow: Add the support for copy-on-write clusters

2011-11-20 Thread Lan Tianyu
When meeting request to write the cluster without copied flag, allocate a new cluster and write original data with modification to the new cluster. This also adds support for the writing operation of the qcow2 compressed image. After testing, image file can pass through "qemu-img check". The perfor