[PATCH] qcow2: fix double-free of Qcow2DiscardRegion in qcow2_process_discards

2014-10-11 Thread Zhang Haoyu
In qcow2_update_snapshot_refcount - qcow2_process_discards() - bdrv_discard() may free the Qcow2DiscardRegion which is referenced by next pointer in qcow2_process_discards() now, in next iteration, d = next, so g_free(d) will double-free this Qcow2DiscardRegion. qcow2_snapshot_delete |-

[PATCH net-next RFC 0/3] virtio-net: Conditionally enable tx interrupt

2014-10-11 Thread Jason Wang
Hello all: We free old transmitted packets in ndo_start_xmit() currently, so any packet must be orphaned also there. This was used to reduce the overhead of tx interrupt to achieve better performance. But this may not work for some protocols such as TCP stream. TCP depends on the value of

[PATCH net-next RFC 3/3] virtio-net: conditionally enable tx interrupt

2014-10-11 Thread Jason Wang
We free transmitted packets in ndo_start_xmit() in the past to get better performance in the past. One side effect is that skb_orphan() needs to be called in ndo_start_xmit() which makes sk_wmem_alloc not accurate in fact. For TCP protocol, this means several optimization could not work well such

[PATCH net-next RFC 2/3] vhost: support urgent descriptors

2014-10-11 Thread Jason Wang
This patches let vhost-net support urgent descriptors. For zerocopy case, two new types of length was introduced to make it work. Signed-off-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Jason Wang jasow...@redhat.com --- drivers/vhost/net.c | 43

[PATCH net-next RFC 1/3] virtio: support for urgent descriptors

2014-10-11 Thread Jason Wang
Below should be useful for some experiments Jason is doing. I thought I'd send it out for early review/feedback. event idx feature allows us to defer interrupts until a specific # of descriptors were used. Sometimes it might be useful to get an interrupt after a specific descriptor, regardless.

Re: bug: host crash when vf is passthrough to vm.

2014-10-11 Thread Alex Williamson
On Sat, 2014-10-11 at 11:02 +0800, ChenLiang wrote: Hi all: kernel: 3.0.93-0.8-default qemu: 1.5 This is a very old kernel and rather old QEMU as well. This bug is hopefully fixed in a newer kernel. Thanks, Alex crash log: [134397.708857] BUG: unable to handle kernel NULL pointer

Re: [Qemu-devel] [Bug?] qemu abort when trying to passthrough BCM5719 Gigabit Ethernet

2014-10-11 Thread Alex Williamson
On Sat, 2014-10-11 at 13:58 +0800, zhanghailiang wrote: Hi all, When i try to passthrough BCM5719 Gigabit Ethernet to guest using the qemu master branch, it aborted, and show kvm_set_phys_mem:error registering slot:Bad Address. qemu command:

[GIT PULL] VFIO updates for 3.18-rc1

2014-10-11 Thread Alex Williamson
Hi Linus, The following changes since commit fe82dcec644244676d55a1384c958d5f67979adb: Linux 3.17-rc7 (2014-09-28 14:29:07 -0700) are available in the git repository at: git://github.com/awilliam/linux-vfio.git tags/vfio-v3.18-rc1 for you to fetch changes up to

Re: bug: host crash when vf is passthrough to vm.

2014-10-11 Thread ChenLiang
Thanks for your reply. I will try new kernel. And do you have any suggestion? I have google it, sadly, nothing mention this bug. Best regards ChenLiang On 2014/10/11 15:37, Alex Williamson wrote: On Sat, 2014-10-11 at 11:02 +0800, ChenLiang wrote: Hi all: kernel: 3.0.93-0.8-default qemu:

Re: [PATCH v3 1/3] arm64: KVM: Implement 48 VA support for KVM EL2 and Stage-2

2014-10-11 Thread Marc Zyngier
On 2014-10-10 11:14, Christoffer Dall wrote: This patch adds the necessary support for all host kernel PGSIZE and VA_SPACE configuration options for both EL2 and the Stage-2 page tables. However, for 40bit and 42bit PARange systems, the architecture mandates that VTCR_EL2.SL0 is maximum 1,

Re: [PATCH v3 2/3] arm/arm64: KVM: Ensure memslots are within KVM_PHYS_SIZE

2014-10-11 Thread Marc Zyngier
On 2014-10-10 11:14, Christoffer Dall wrote: When creating or moving a memslot, make sure the IPA space is within the addressable range of the guest. Otherwise, user space can create too large a memslot and KVM would try to access potentially unallocated page table entries when inserting

[Help] qemu abort when configure ivshmem size =32M with kvm-3.6

2014-10-11 Thread zhanghailiang
Hi all, We can't start VM when we configure ivshmem with its size = 32M. Its reports: kvm_set_phys_mem: error registering slot: File exists Aborted (core dumped) Qemu command: #qemu-system-x86_64 -name suse10sp1 -enable-kvm -m 4096 -smp 4,sockets=1, \ cores=4,threads=1 -drive

Re: [PATCH v2 2/5] KVM: x86: Emulator performs code segment checks on read access

2014-10-11 Thread Paolo Bonzini
Il 10/10/2014 17:54, Radim Krčmář ha scritto: One exception is the case of conforming code segment. The SDM says: Use a code-segment override prefix (CS) to read a readable... [it is] valid because the DPL of the code segment selected by the CS register is the same as the CPL. This

Re: [PATCH net-next RFC 3/3] virtio-net: conditionally enable tx interrupt

2014-10-11 Thread Eric Dumazet
On Sat, 2014-10-11 at 15:16 +0800, Jason Wang wrote: We free transmitted packets in ndo_start_xmit() in the past to get better performance in the past. One side effect is that skb_orphan() needs to be called in ndo_start_xmit() which makes sk_wmem_alloc not accurate in fact. For TCP protocol,

Please reply

2014-10-11 Thread Jose Calvache
Dear Sir/Madam, Here is a pdf attachment of my proposal to you. Please read and reply I would be grateful. Jose Calvache -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at