Re: [Qemu-devel] [PATCH 00/12] Multiqueue virtio-net

2013-01-10 Thread Stefan Hajnoczi
On Thu, Jan 10, 2013 at 05:34:14PM +0800, Jason Wang wrote: On 01/10/2013 04:44 PM, Stefan Hajnoczi wrote: On Wed, Jan 09, 2013 at 11:33:25PM +0800, Jason Wang wrote: On 01/09/2013 11:32 PM, Michael S. Tsirkin wrote: On Wed, Jan 09, 2013 at 03:29:24PM +0100, Stefan Hajnoczi wrote: On Fri

Re: what's the different for qemu --eanble-kvm and accel=kvm and qemu(when kvm kmod load)

2013-01-09 Thread Stefan Hajnoczi
On Mon, Jan 07, 2013 at 05:08:13PM +0800, lei yang wrote: On Mon, Jan 7, 2013 at 4:58 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Sun, Jan 6, 2013 at 12:27 PM, lei yang yanglei.f...@gmail.com wrote: What's the different with below combos? The difference is historical, it's just how

Re: [PATCH] virtio-spec: fix two typos

2013-01-09 Thread Stefan Hajnoczi
insertions(+), 2 deletions(-) Reviewed-by: Stefan Hajnoczi stefa...@redhat.com -- 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 http://vger.kernel.org/majordomo-info.html

Re: [PATCH 01/12] tap: multiqueue support

2013-01-09 Thread Stefan Hajnoczi
On Fri, Dec 28, 2012 at 06:31:53PM +0800, Jason Wang wrote: diff --git a/qapi-schema.json b/qapi-schema.json index 5dfa052..583eb7c 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2465,7 +2465,7 @@ { 'type': 'NetdevTapOptions', 'data': { '*ifname': 'str', -'*fd':

Re: [Qemu-devel] [PATCH 00/12] Multiqueue virtio-net

2013-01-09 Thread Stefan Hajnoczi
On Fri, Dec 28, 2012 at 06:31:52PM +0800, Jason Wang wrote: Perf Numbers: Two Intel Xeon 5620 with direct connected intel 82599EB Host/Guest kernel: David net tree vhost enabled - lots of improvents of both latency and cpu utilization in request-reponse test - get regression of guest

Re: what's the different for qemu --eanble-kvm and accel=kvm and qemu(when kvm kmod load)

2013-01-07 Thread Stefan Hajnoczi
On Sun, Jan 6, 2013 at 12:27 PM, lei yang yanglei.f...@gmail.com wrote: What's the different with below combos? The difference is historical, it's just how the command-line options evolved over time. 1)qemu --enable-kvm The old way. Still useful because it's slightly easier to type than

Re: [PATCH v2 1/5] virtio: add functions for piecewise addition of buffers

2012-12-19 Thread Stefan Hajnoczi
On Tue, Dec 18, 2012 at 01:32:48PM +0100, Paolo Bonzini wrote: +/** + * virtqueue_start_buf - start building buffer for the other end + * @vq: the struct virtqueue we're talking about. + * @buf: a struct keeping the state of the buffer + * @data: the token identifying the buffer. + * @count:

Re: [PATCH v2 5/5] virtio-scsi: introduce multiqueue support

2012-12-19 Thread Stefan Hajnoczi
On Tue, Dec 18, 2012 at 01:32:52PM +0100, Paolo Bonzini wrote: struct virtio_scsi_target_state { - /* Never held at the same time as vq_lock. */ + /* This spinlock ever held at the same time as vq_lock. */ s/ever/is never/ -- To unsubscribe from this list: send the line unsubscribe

Re: kvm is not used in guset os

2012-12-19 Thread Stefan Hajnoczi
On Wed, Dec 19, 2012 at 12:03:28PM +0800, Rozen Lin wrote: Hi, All, Currently when using kvm from qemu-kvm-1.1.0, I found sometimes after doing the restart within the guest OS(winxp), the guest machine becomes extremely slow and the computer info shows the CPU is 'QEMU virtual CPU' and its

Re: Weird networking problem

2012-12-19 Thread Stefan Hajnoczi
On Tue, Dec 18, 2012 at 05:45:05PM +0100, Lorenzo Milesi wrote: From Network B, I can ping ssh to 192.168.1.49 (another physical host on the lan), but I can only ping my kvm physical host, all TCP connection (ssh) gets lost. I have similar problem with port forward, while I can ssh to .49

Re: I/O scheduling on block devices

2012-12-19 Thread Stefan Hajnoczi
On Tue, Dec 18, 2012 at 04:46:47PM -0500, Javier Guerra Giraldez wrote: On Tue, Dec 18, 2012 at 4:41 PM, Andrew Holway a.hol...@syseleven.de wrote: How should I set up io scheduling with this configuration. Performance is not so great and I have a feeling that all of the io schedulers in my

Re: [PATCH 3/3] virtio-pci: don't poll masked vectors

2012-12-19 Thread Stefan Hajnoczi
On Tue, Dec 18, 2012 at 02:39:19PM +0200, Michael S. Tsirkin wrote: -static int virtio_pci_set_guest_notifier(DeviceState *d, int n, bool assign) +static void kvm_virtio_pci_vector_poll(PCIDevice *dev, + unsigned int vector_start, +

Re: [PATCH v2 1/5] virtio: add functions for piecewise addition of buffers

2012-12-19 Thread Stefan Hajnoczi
On Wed, Dec 19, 2012 at 1:04 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 19/12/2012 11:47, Stefan Hajnoczi ha scritto: On Tue, Dec 18, 2012 at 01:32:48PM +0100, Paolo Bonzini wrote: What is the purpose of count_sg? It is needed to decide whether to use an indirect or a direct buffer

Re: Process blocked for more than 120 seconds.

2012-12-14 Thread Stefan Hajnoczi
On Wed, Dec 12, 2012 at 1:01 PM, Andrew Holway a.hol...@syseleven.de wrote: No the NFS is not hung and yes I can access the image on the host. Its just seems to happen occasionally with some VMs.. Not sure how to approach this besides looking at Linux and QEMU sources and deciding what to

Re: Process blocked for more than 120 seconds.

2012-12-11 Thread Stefan Hajnoczi
On Fri, Dec 7, 2012 at 1:09 PM, Andrew Holway a.hol...@syseleven.de wrote: -drivefile=/rhev/data-center/3ecf6306-3fa6-11e2-b544-00215e253fcc/b2a3daf4-7315-4cd8-a076-4ab005db7410/images/8c3541ea-9b89-4837-b98a-ae97feae6765/c90ceaf1-9c3a-42e6-b1a2-939fc1403fcb if=none id=drive-virtio-disk0

Re: qemu-kvm-1.2.0: double free or corruption in VNC code

2012-11-26 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 08:24:32PM +0100, Nikola Ciprich wrote: Please also post the exact package version you are using - the line numbers change between releases and depend on which patches have been applied to the source tree. The distro exact package version allows me to download the

Re: KVM Disk i/o or VM activities causes soft lockup?

2012-11-26 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 10:34:16AM -0800, Vincent Li wrote: On Thu, Nov 22, 2012 at 11:29 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Wed, Nov 21, 2012 at 03:36:50PM -0800, Vincent Li wrote: We have users running on redhat based distro (Kernel 2.6.32-131.21.1.el6.x86_64 ) with kvm

Re: Invoking guest os script, without guest having network connectivity?

2012-11-26 Thread Stefan Hajnoczi
On Sat, Nov 24, 2012 at 06:40:39PM +0200, Shlomi Tsadok wrote: I'm looking for a way to configure the guest networking(including IP) dynamically, using a custom script, right after VM creation. Is there a similar feature in KVM/Libvirt as the Invoke-VMScript in of VMware's PowerCLI? It

Re: qemu-kvm-1.2.0: double free or corruption in VNC code

2012-11-22 Thread Stefan Hajnoczi
On Wed, Nov 21, 2012 at 07:43:16AM +0100, Nikola Ciprich wrote: Hello Stefan, thanks! here it goes.. *** glibc detected *** /usr/bin/qemu-kvm: double free or corruption (!prev): 0x7fc634008cd0 *** === Backtrace: = /lib64/libc.so.6(+0x75916)[0x7fc9026f4916]

Re: Performance issue

2012-11-22 Thread Stefan Hajnoczi
On Thu, Nov 22, 2012 at 09:17:34PM +0200, George-Cristian Bîrzan wrote: I'm trying to understand a performance problem (50% degradation in the VM) that I'm experiencing some systems with qemu-kvm. Running Fedora with 3.5.3-1.fc17.x86_64 or 3.6.6-1.fc17.x86_64, qemu 1.0.1 or 1.2.1 on AMD

Re: KVM Disk i/o or VM activities causes soft lockup?

2012-11-22 Thread Stefan Hajnoczi
On Wed, Nov 21, 2012 at 03:36:50PM -0800, Vincent Li wrote: We have users running on redhat based distro (Kernel 2.6.32-131.21.1.el6.x86_64 ) with kvm, when customer made cron job script to copy large files between kvm guest or some other user space program leads to disk i/o or VM activities,

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

2012-11-20 Thread Stefan Hajnoczi
On Tue, Nov 20, 2012 at 06:31:48AM +, Pandarathil, Vijaymohan R wrote: Add support for error containment when a PCI pass-thru device assigned to a KVM guest encounters an error. This is for PCIe devices/drivers that support AER functionality. When the OS is notified of an error in a

Re: messed up with xml-files and configuration of a VM

2012-11-20 Thread Stefan Hajnoczi
On Tue, Nov 20, 2012 at 5:13 PM, Lentes, Bernd bernd.len...@helmholtz-muenchen.de wrote: first, i'm new to kvm. I'm running KVM on a sles 11 sp2, kernel 3.0.13-0.27-default. My guest is an Ubuntu 12.0.4 LTS 64bit. The guest has attached a CDROM, using an iso-file from a CIFS-Share. I

Re: qemu-kvm-1.2.0: double free or corruption

2012-11-20 Thread Stefan Hajnoczi
On Mon, Nov 19, 2012 at 8:56 AM, Nikola Ciprich nikola.cipr...@linuxbox.cz wrote: on one of our servers, windows 2008 KVM suddenly crashed. I see following in libvirt log: *** glibc detected *** /usr/bin/qemu-kvm: double free or corruption (!prev): 0x7fc634008cd0 *** === Backtrace:

Re: [Qemu-devel] Ubuntu/Debian Installer + Virtio-SCSI - Bad ram pointer

2012-11-19 Thread Stefan Hajnoczi
On Thu, Nov 8, 2012 at 4:26 PM, Peter Lieven p...@dlhnet.de wrote: Has anyone any other idea what the cause could be or where to start? Hi Peter, I suggested posting the source tree you are building. Since you have applied patches yourself no one else is able to follow along with the gdb output

Re: I/O errors in guest OS after repeated migration

2012-11-08 Thread Stefan Hajnoczi
On Tue, Nov 6, 2012 at 12:07 PM, Guido Winkelmann guido-k...@thisisnotatest.de wrote: Am Montag, 29. Oktober 2012, 12:29:01 schrieb Stefan Hajnoczi: On Fri, Oct 19, 2012 at 2:55 PM, Guido Winkelmann guido-k...@thisisnotatest.de wrote: Am Donnerstag, 18. Oktober 2012, 18:05:39 schrieb Avi

Re: [RFC PATCH v3 00/19] ACPI memory hotplug

2012-10-31 Thread Stefan Hajnoczi
On Fri, Sep 21, 2012 at 1:17 PM, Vasilis Liaskovitis vasilis.liaskovi...@profitbricks.com wrote: This is v3 of the ACPI memory hotplug functionality. Only x86_64 target is supported for now. Hi Vasilis, Regarding the hot unplug issue we've been discussing, it's possible to progress this patch

Re: [Qemu-devel] [RFC PATCH v3 05/19] Implement dimm device abstraction

2012-10-31 Thread Stefan Hajnoczi
On Wed, Oct 31, 2012 at 12:15 PM, Avi Kivity a...@redhat.com wrote: On 10/24/2012 10:06 AM, liu ping fan wrote: On Tue, Oct 23, 2012 at 8:25 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Fri, Sep 21, 2012 at 01:17:21PM +0200, Vasilis Liaskovitis wrote: +static void dimm_populate(DimmDevice

Re: [Qemu-devel] [RFC PATCH v3 05/19] Implement dimm device abstraction

2012-10-31 Thread Stefan Hajnoczi
On Wed, Oct 31, 2012 at 1:34 PM, Avi Kivity a...@redhat.com wrote: On 10/31/2012 02:18 PM, Stefan Hajnoczi wrote: IMO we should use the same mechanism as proposed for other devices: address_space_map() should grab a reference on the dimm device, and address_space_unmap() can release

Re: [Qemu-devel] Ubuntu/Debian Installer + Virtio-SCSI - Bad ram pointer

2012-10-30 Thread Stefan Hajnoczi
On Mon, Oct 29, 2012 at 03:09:37PM +0100, Peter Lieven wrote: Hi, Bug subject should be virtio-blk, not virtio-scsi. virtio-scsi is a different virtio device type from virtoi-blk and is not present in the backtrace you posted. Sounds pedantic but I want to make sure this gets chalked up

Re: [Qemu-devel] Ubuntu/Debian Installer + Virtio-SCSI - Bad ram pointer

2012-10-30 Thread Stefan Hajnoczi
On Tue, Oct 30, 2012 at 4:56 PM, Peter Lieven p...@dlhnet.de wrote: On 30.10.2012 09:32, Stefan Hajnoczi wrote: On Mon, Oct 29, 2012 at 03:09:37PM +0100, Peter Lieven wrote: Hi, Bug subject should be virtio-blk, not virtio-scsi. virtio-scsi is a different virtio device type from virtoi

Re: [Qemu-devel] Ubuntu/Debian Installer + Virtio-SCSI - Bad ram pointer

2012-10-30 Thread Stefan Hajnoczi
On Tue, Oct 30, 2012 at 10:09 PM, ronnie sahlberg ronniesahlb...@gmail.com wrote: About half a year there was an issue where recent kernels had added support to start using new scsi opcodes, but the qemu functions that determine which transfer direction is used for this opcode had not yet

Re: [Qemu-devel] Ubuntu/Debian Installer + Virtio-SCSI - Bad ram pointer

2012-10-30 Thread Stefan Hajnoczi
On Tue, Oct 30, 2012 at 8:37 PM, Peter Lieven p...@dlhnet.de wrote: Am 30.10.2012 19:27, schrieb Stefan Hajnoczi: Please also post the exact qemu-kvm version you are using. I can see it's based on qemu-kvm-1.2.0 but are there any patches applied (e.g. distro packages may carry patches so

Re: Can we run guest OS without using NAT and iptables?

2012-10-29 Thread Stefan Hajnoczi
On Mon, Oct 29, 2012 at 12:55:43PM +0530, freak 62 wrote: Can we run guest o.s. on KVM without enabling NAT and iptables? The reason to do this is , I wanted to disable conntrack module from my system and to disable that I must have to delete iptable and NAT. I am getting the

Re: I/O errors in guest OS after repeated migration

2012-10-29 Thread Stefan Hajnoczi
On Fri, Oct 19, 2012 at 2:55 PM, Guido Winkelmann guido-k...@thisisnotatest.de wrote: Am Donnerstag, 18. Oktober 2012, 18:05:39 schrieb Avi Kivity: On 10/18/2012 05:50 PM, Guido Winkelmann wrote: Am Mittwoch, 17. Oktober 2012, 13:25:45 schrieb Brian Jackson: On Wednesday, October 17, 2012

Re: FW: cgroup blkio.weight working, but not for KVM guests

2012-10-24 Thread Stefan Hajnoczi
On Tue, Oct 23, 2012 at 04:48:13PM -0600, Ben Clay wrote: Since this is not an issue, I guess another source of problems could be that all the virtio threads attached to this domain are not being placed within the cgroup. I will look through libvirt to see if they're setting the guest's

Re: [Qemu-devel] [RFC PATCH v3 05/19] Implement dimm device abstraction

2012-10-24 Thread Stefan Hajnoczi
On Wed, Oct 24, 2012 at 10:06 AM, liu ping fan qemul...@gmail.com wrote: On Tue, Oct 23, 2012 at 8:25 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Fri, Sep 21, 2012 at 01:17:21PM +0200, Vasilis Liaskovitis wrote: +static void dimm_populate(DimmDevice *s) +{ +DeviceState *dev

Re: [Qemu-devel] [RFC PATCH v3 05/19] Implement dimm device abstraction

2012-10-23 Thread Stefan Hajnoczi
On Fri, Sep 21, 2012 at 01:17:21PM +0200, Vasilis Liaskovitis wrote: +static void dimm_populate(DimmDevice *s) +{ +DeviceState *dev= (DeviceState*)s; +MemoryRegion *new = NULL; + +new = g_malloc(sizeof(MemoryRegion)); +memory_region_init_ram(new, dev-id, s-size); +

Re: FW: cgroup blkio.weight working, but not for KVM guests

2012-10-23 Thread Stefan Hajnoczi
On Mon, Oct 22, 2012 at 07:36:34AM -0600, Ben Clay wrote: Forwarding this to the KVM general list.  I doubt you folks can help me with libvirt, but I was wondering if there’s some way to verify if the cache=none parameter is being respected for my KVM guest’s disk image, or if there are any

Re: [User Question] How to create a backup of an LVM based maschine without wasting space

2012-10-12 Thread Stefan Hajnoczi
On Fri, Oct 12, 2012 at 08:52:32AM +0200, Lukas Laukamp wrote: I have a simple user question. I have a few LVM based KVM guests and wan't to backup them to files. The simple and nasty way would be to create a complete output file with dd, which wastes very much space. So I would like to create

Re: [User Question] How to create a backup of an LVM based maschine without wasting space

2012-10-12 Thread Stefan Hajnoczi
On Fri, Oct 12, 2012 at 11:17 AM, Lukas Laukamp lu...@laukamp.me wrote: Am 12.10.2012 10:58, schrieb Lukas Laukamp: Am 12.10.2012 10:42, schrieb Stefan Hajnoczi: On Fri, Oct 12, 2012 at 08:52:32AM +0200, Lukas Laukamp wrote: I have a simple user question. I have a few LVM based KVM guests

Re: [User Question] How to create a backup of an LVM based maschine without wasting space

2012-10-12 Thread Stefan Hajnoczi
On Fri, Oct 12, 2012 at 12:16 PM, Lukas Laukamp lu...@laukamp.me wrote: Am 12.10.2012 12:11, schrieb Stefan Hajnoczi: On Fri, Oct 12, 2012 at 11:17 AM, Lukas Laukamp lu...@laukamp.me wrote: Am 12.10.2012 10:58, schrieb Lukas Laukamp: Am 12.10.2012 10:42, schrieb Stefan Hajnoczi: On Fri

Re: [User Question] How to create a backup of an LVM based maschine without wasting space

2012-10-12 Thread Stefan Hajnoczi
On Fri, Oct 12, 2012 at 12:50 PM, Lukas Laukamp lu...@laukamp.me wrote: Am 12.10.2012 12:47, schrieb Stefan Hajnoczi: On Fri, Oct 12, 2012 at 12:16 PM, Lukas Laukamp lu...@laukamp.me wrote: Am 12.10.2012 12:11, schrieb Stefan Hajnoczi: On Fri, Oct 12, 2012 at 11:17 AM, Lukas Laukamp lu

Re: [User Question] How to create a backup of an LVM based maschine without wasting space

2012-10-12 Thread Stefan Hajnoczi
On Fri, Oct 12, 2012 at 1:51 PM, Lukas Laukamp lu...@laukamp.me wrote: Am 12.10.2012 13:36, schrieb Stefan Hajnoczi: On Fri, Oct 12, 2012 at 12:50 PM, Lukas Laukamp lu...@laukamp.me wrote: Am 12.10.2012 12:47, schrieb Stefan Hajnoczi: On Fri, Oct 12, 2012 at 12:16 PM, Lukas Laukamp lu

Re: [User Question] How to create a backup of an LVM based maschine without wasting space

2012-10-12 Thread Stefan Hajnoczi
On Fri, Oct 12, 2012 at 3:02 PM, Lukas Laukamp lu...@laukamp.me wrote: Am 12.10.2012 14:59, schrieb Stefan Hajnoczi: On Fri, Oct 12, 2012 at 1:51 PM, Lukas Laukamp lu...@laukamp.me wrote: Am 12.10.2012 13:36, schrieb Stefan Hajnoczi: On Fri, Oct 12, 2012 at 12:50 PM, Lukas Laukamp lu

Re: [User Question] How to create a backup of an LVM based maschine without wasting space

2012-10-12 Thread Stefan Hajnoczi
On Fri, Oct 12, 2012 at 8:14 PM, Lukas Laukamp lu...@laukamp.me wrote: Am 12.10.2012 13:36, schrieb Stefan Hajnoczi: On Fri, Oct 12, 2012 at 12:50 PM, Lukas Laukamp lu...@laukamp.me wrote: Am 12.10.2012 12:47, schrieb Stefan Hajnoczi: On Fri, Oct 12, 2012 at 12:16 PM, Lukas Laukamp lu

Re: [User Question] How to create a backup of an LVM based maschine without wasting space

2012-10-12 Thread Stefan Hajnoczi
On Fri, Oct 12, 2012 at 4:36 PM, Javier Guerra Giraldez jav...@guerrag.com wrote: On Fri, Oct 12, 2012 at 9:25 AM, Stefan Hajnoczi stefa...@gmail.com wrote: I would leave them raw as long as they are sparse (zero regions do not take up space). If you need to copy them you can either convert

Re: [User Question] How to create a backup of an LVM based maschine without wasting space

2012-10-12 Thread Stefan Hajnoczi
On Fri, Oct 12, 2012 at 9:26 PM, Lukas Laukamp lu...@laukamp.me wrote: Am 12.10.2012 21:13, schrieb Stefan Hajnoczi: On Fri, Oct 12, 2012 at 8:14 PM, Lukas Laukamp lu...@laukamp.me wrote: Am 12.10.2012 13:36, schrieb Stefan Hajnoczi: On Fri, Oct 12, 2012 at 12:50 PM, Lukas Laukamp lu

Re: resize raw images

2012-10-02 Thread Stefan Hajnoczi
On Fri, Sep 28, 2012 at 6:14 PM, Lentes, Bernd bernd.len...@helmholtz-muenchen.de wrote: I also have to create some new vm's. What is when disk space is running out ? My idea is to create the new vm's in raw images. Inside the vm, filesystems will reside in logical volumes. When disk space is

Re: [PATCH] virtio-blk: Disable callback in virtblk_done()

2012-10-02 Thread Stefan Hajnoczi
On Thu, Sep 27, 2012 at 12:01 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 27/09/2012 02:10, Rusty Russell ha scritto: +do { +virtqueue_disable_cb(vq); +while ((vbr = virtqueue_get_buf(vblk-vq, len)) != NULL) { +if

Re: Block live migration without pausing VM

2012-10-02 Thread Stefan Hajnoczi
On Sun, Sep 23, 2012 at 5:03 PM, Felix Leimbach felix.leimb...@gmail.com wrote: I want to implement live-migration of a highly available VM but I cannot use shared storage. The -b option to the migrate command already allows for copying the block device (locally stored raw file) and that is

Re: [PATCH v5 01/17] target-i386: Allow tsc-frequency to be larger then 2.147G

2012-09-22 Thread Stefan Hajnoczi
On Fri, Sep 21, 2012 at 08:13:13PM -0400, Don Slutz wrote: The check using INT_MAX (2147483647) is wrong in this case. Signed-off-by: Fred Oliveira folive...@cloudswitch.com Signed-off-by: Don Slutz d...@cloudswitch.com --- target-i386/cpu.c |2 +- 1 files changed, 1 insertions(+), 1

Re: [Qemu-devel] [PATCH] kvm: Fix warning from static code analysis

2012-09-05 Thread Stefan Hajnoczi
On Mon, Sep 03, 2012 at 10:40:40PM +0200, Stefan Weil wrote: Report from smatch: kvm-all.c:1373 kvm_init(135) warn: variable dereferenced before check 's' (see line 1360) 's' cannot by NULL (it was alloced using g_malloc0), so there is no need to check it here. Signed-off-by: Stefan

Re: NFSoRDMA not working with KVM when cache disabled

2012-09-03 Thread Stefan Hajnoczi
On Fri, Aug 31, 2012 at 6:05 PM, Andrew Holway a.hol...@syseleven.de wrote: I am trying to host KVM machines on an NFSoRDMA mount. This works: -drive file=/mnt/vm001.img,if=none,id=drive-virtio-disk0,format=raw -device

Re: Qcow2 preallocation + backing file

2012-09-03 Thread Stefan Hajnoczi
On Mon, Jul 30, 2012 at 9:10 PM, Mark Moseley moseleym...@gmail.com wrote: While I might've answered my own question, I'm no fio expert. I don't necessarily trust that I'm testing it correctly, which is why I'm asking here. Running the same test multiple times gives me 30-40meg/sec for both

Re: [PATCH 0/5] Multiqueue virtio-scsi

2012-08-30 Thread Stefan Hajnoczi
(so that commands are not reordered); queue switching occurs when the request being queued is the only one for the target. Also based on Jason's patches, the virtqueue affinity is set so that each CPU is associated to one virtqueue. Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com

Re: [PATCH] vhost: remove duplicated include from tcm_vhost.c

2012-08-26 Thread Stefan Hajnoczi
- 1 file changed, 1 deletion(-) Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com -- 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 http://vger.kernel.org/majordomo-info.html

Re: help about boot with initrd

2012-08-26 Thread Stefan Hajnoczi
On Sat, Aug 25, 2012 at 5:08 PM, lei yang yanglei.f...@gmail.com wrote: On Sat, Aug 25, 2012 at 2:47 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Sat, Aug 25, 2012 at 2:34 AM, lei yang yanglei.f...@gmail.com wrote: I used the redhat RHEL6 boot with initrd but it failed, can sb help me ( I

Re: help about boot with initrd

2012-08-25 Thread Stefan Hajnoczi
On Sat, Aug 25, 2012 at 2:34 AM, lei yang yanglei.f...@gmail.com wrote: I used the redhat RHEL6 boot with initrd but it failed, can sb help me ( I have tried /dev/ram /dev/ram0 and initrd-2.6.32-279.el6.x86_64kdump.img) [root@localhost boot]# /usr/libexec/qemu-kvm --enable-kvm -smp 8 -m 1024

Re: qemu-kvm-1.0.1 - unable to exit if vcpu is in infinite loop

2012-08-21 Thread Stefan Hajnoczi
On Tue, Aug 21, 2012 at 8:21 AM, Jan Kiszka jan.kis...@siemens.com wrote: On 2012-08-19 11:42, Avi Kivity wrote: On 08/17/2012 06:04 PM, Jan Kiszka wrote: Can anyone imagine that such a barrier may actually be required? If it is currently possible that env-stop is evaluated before we called

Re: [RFC-v2 4/6] virtio-scsi: Add start/stop functionality for vhost-scsi

2012-08-20 Thread Stefan Hajnoczi
On Mon, Aug 20, 2012 at 10:04 AM, Paolo Bonzini pbonz...@redhat.com wrote: Il 13/08/2012 10:35, Nicholas A. Bellinger ha scritto: From: Stefan Hajnoczi stefa...@linux.vnet.ibm.com This patch starts and stops vhost as the virtio device transitions through its status phases. Vhost can only

Re: vm pxe fail

2012-08-16 Thread Stefan Hajnoczi
On Thu, Aug 16, 2012 at 1:25 PM, Andrew Holway a.hol...@syseleven.de wrote: I have a kvm vm that I am attempting to boot from pxe. The dhcp works perfectly and I can see the VM in the pxe server arp. but the tftp just times out. I don't see any tftp traffic on either the physical host or on

Re: vm pxe fail

2012-08-16 Thread Stefan Hajnoczi
On Thu, Aug 16, 2012 at 4:09 PM, Andrew Holway a.hol...@syseleven.de wrote: On Aug 16, 2012, at 3:54 PM, Stefan Hajnoczi wrote: On Thu, Aug 16, 2012 at 1:25 PM, Andrew Holway a.hol...@syseleven.de wrote: I have a kvm vm that I am attempting to boot from pxe. The dhcp works perfectly and I

Re: [PATCH] kvm tools: Add initial virtio-scsi support

2012-08-14 Thread Stefan Hajnoczi
-scsi) tcm_vhost: Initial merge for vhost level target fabric driver we can implement virito-scsi by simply having vhost-scsi to handle the SCSI command. Howto use: 1) Setup the tcm_vhost target through /sys/kernel/config [Stefan Hajnoczi, Thanks for the script to setup

Re: [PATCH 2/3] vfio: vfio-pci device assignment driver

2012-08-14 Thread Stefan Hajnoczi
On Tue, Jul 31, 2012 at 11:18:15PM -0600, Alex Williamson wrote: This adds the core of the QEMU VFIO-based PCI device assignment driver. To make use of this driver, enable CONFIG_VFIO, CONFIG_VFIO_IOMMU_TYPE1, and CONFIG_VFIO_PCI in your host Linux kernel config. Load the vfio-pci module. To

Re: virtio-scsi - vhost multi lun/adapter performance results with 3.6-rc0

2012-08-11 Thread Stefan Hajnoczi
On Sat, Aug 11, 2012 at 12:23 AM, Nicholas A. Bellinger n...@linux-iscsi.org wrote: Using a KVM guest with 32x vCPUs and 4G memory, the results for 4x random I/O now look like: workload | jobs | 25% write / 75% read | 75% write / 25% read

Re: KVM segfaults with 3.5 while installing ubuntu 12.04

2012-08-10 Thread Stefan Hajnoczi
/730a9c53b4e52681fcfe31cf38854cbf91e132c7 Am 08.08.2012 10:06, schrieb Stefan Hajnoczi: On Wed, Aug 08, 2012 at 07:51:07AM +0200, Stefan Priebe wrote: Any news? Was this applied upstream? Kevin is ill. He has asked me to review and test patches in his absence. When he gets back later this week

Re: [PATCH 3/5] s390: Add new channel I/O based virtio transport.

2012-08-09 Thread Stefan Hajnoczi
On Tue, Aug 7, 2012 at 3:52 PM, Cornelia Huck cornelia.h...@de.ibm.com wrote: Add a new virtio transport that uses channel commands to perform virtio operations. Add a new machine type s390-ccw that uses this virtio-ccw transport and make it the default machine for s390. Signed-off-by:

Re: [PATCH 3/5] s390: Add new channel I/O based virtio transport.

2012-08-09 Thread Stefan Hajnoczi
On Thu, Aug 9, 2012 at 1:12 PM, Cornelia Huck cornelia.h...@de.ibm.com wrote: On Thu, 9 Aug 2012 12:34:04 +0100 Stefan Hajnoczi stefa...@gmail.com wrote: On Tue, Aug 7, 2012 at 3:52 PM, Cornelia Huck cornelia.h...@de.ibm.com wrote: Add a new virtio transport that uses channel commands

Re: KVM segfaults with 3.5 while installing ubuntu 12.04

2012-08-08 Thread Stefan Hajnoczi
On Wed, Aug 08, 2012 at 07:51:07AM +0200, Stefan Priebe wrote: Any news? Was this applied upstream? Kevin is ill. He has asked me to review and test patches in his absence. When he gets back later this week this will get picked up (and included in QEMU 1.2). Here is the tree, it includes this

Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations

2012-08-08 Thread Stefan Hajnoczi
On Wed, Aug 8, 2012 at 10:21 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 8 August 2012 07:25, Liu Ping Fan qemul...@gmail.com wrote: +static inline void atomic_sub(int i, Atomic *v) +{ +asm volatile(lock; subl %1,%0 + : +m (v-counter) + : ir (i)); +}

Re: qemu-kvm-1.0.1 - unable to exit if vcpu is in infinite loop

2012-08-06 Thread Stefan Hajnoczi
On Thu, Jun 28, 2012 at 2:05 PM, Peter Lieven p...@dlhnet.de wrote: i debugged my initial problem further and found out that the problem happens to be that the main thread is stuck in pause_all_vcpus() on reset or quit commands in the monitor if one cpu is stuck in the do-while loop

Re: [regression] virtio net locks up

2012-08-02 Thread Stefan Hajnoczi
On Wed, Aug 1, 2012 at 6:05 PM, Bernd Schubert bernd.schub...@itwm.fraunhofer.de wrote: On 07/31/2012 12:23 PM, Stefan Hajnoczi wrote: On Mon, Jul 30, 2012 at 7:08 PM, Bernd Schubert I took a quick glance where skb_recv_done is registered at all and traced it back to vp_find_vqs

Re: [Qemu-devel] [PATCH] kvm: Check if smp_cpus exceeds max cpus supported by kvm

2012-07-31 Thread Stefan Hajnoczi
On Mon, Jul 30, 2012 at 7:22 PM, riegama...@gmail.com wrote: From: Dunrong Huang riegama...@gmail.com Add a helper function for fetching max cpus supported by kvm. Make QEMU exit with an error message if smp_cpus exceeds limit of VCPU count retrieved by invoking this helper function.

Re: [regression] virtio net locks up

2012-07-31 Thread Stefan Hajnoczi
On Mon, Jul 30, 2012 at 7:08 PM, Bernd Schubert bernd.schub...@itwm.fraunhofer.de wrote: On 07/30/2012 07:33 PM, Bernd Schubert wrote: Hello Stefan, Stefan Hajnoczi stefanha at gmail.com writes: On Wed, Jan 11, 2012 at 4:18 PM, Bernd Schubert bernd.schubert at itwm.fraunhofer.de wrote

Re: KVM call agenda for Tuesday, July 31

2012-07-31 Thread Stefan Hajnoczi
On Mon, Jul 30, 2012 at 8:34 AM, Juan Quintela quint...@redhat.com wrote: Please send in any agenda items you are interested in covering. QEMU 1.2 Test Day * Let's find -rc bugs and ensure the release is stable * We've done this in the past and have a wiki template but can discuss suggestions

Re: [PATCH 4/5] qom: delay DeviceState's reclaim to main-loop

2012-07-25 Thread Stefan Hajnoczi
On Wed, Jul 25, 2012 at 4:31 AM, Liu Ping Fan qemul...@gmail.com wrote: From: Liu Ping Fan pingf...@linux.vnet.ibm.com iohandler/bh/timer may use DeviceState when its refcnt=0, postpone the reclaimer till they have done with it. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com ---

Re: [PATCH 5/5] e1000: using new interface--unmap to unplug

2012-07-25 Thread Stefan Hajnoczi
On Wed, Jul 25, 2012 at 4:31 AM, Liu Ping Fan qemul...@gmail.com wrote: From: Liu Ping Fan pingf...@linux.vnet.ibm.com Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com --- hw/e1000.c | 15 +-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/e1000.c

Re: [PATCH 2/5] exec.c: use refcnt to protect device during dispatching

2012-07-25 Thread Stefan Hajnoczi
On Wed, Jul 25, 2012 at 4:31 AM, Liu Ping Fan qemul...@gmail.com wrote: @@ -3396,13 +3420,25 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf, uint32_t val; target_phys_addr_t page; MemoryRegionSection *section; +Object *bk; while (len 0) {

Re: [PATCH] tcm_vhost: Expose ABI version via VHOST_SCSI_GET_ABI_VERSION

2012-07-25 Thread Stefan Hajnoczi
if you have any concerns here. Thanks! Reported-by: Anthony Liguori aligu...@us.ibm.com Cc: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Cc: Michael S. Tsirkin m...@redhat.com Cc: Paolo Bonzini pbonz...@redhat.com Cc: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off

Re: [PATCH] tcm_vhost: Expose ABI version via VHOST_SCSI_GET_ABI_VERSION

2012-07-25 Thread Stefan Hajnoczi
On Wed, Jul 25, 2012 at 02:14:50PM -0700, Nicholas A. Bellinger wrote: On Wed, 2012-07-25 at 12:55 +0100, Stefan Hajnoczi wrote: On Tue, Jul 24, 2012 at 01:45:24PM -0700, Nicholas A. Bellinger wrote: On Mon, 2012-07-23 at 18:56 -0700, Greg Kroah-Hartman wrote: On Tue, Jul 24, 2012 at 01

Re: vhost-scsi port to v1.1.0 + MSI-X performance regression

2012-07-24 Thread Stefan Hajnoczi
nicely reviewable patches that apply against the current qemu.git/master: Nicholas Bellinger (1): virtio-scsi: Set max_target=0 during vhost-scsi operation Stefan Hajnoczi (8): notifier: add validity check and notify function virtio-pci: support host notifiers in TCG mode virtio

Re: [PATCH RESEND] Recognize PCID feature

2012-07-21 Thread Stefan Hajnoczi
On Fri, Jul 20, 2012 at 07:08:21AM +, Mao, Junjie wrote: This patch makes Qemu recognize the PCID feature specified from configuration or command line options. Signed-off-by: Junjie Mao junjie@intel.com --- target-i386/cpu.c |2 +- 1 files changed, 1 insertions(+), 1

Re: [PATCH RESEND 5/5] vhost-blk: Add vhost-blk support

2012-07-20 Thread Stefan Hajnoczi
On Thu, Jul 19, 2012 at 2:09 PM, Michael S. Tsirkin m...@redhat.com wrote: On Thu, Jul 19, 2012 at 08:05:42AM -0500, Anthony Liguori wrote: Of course, the million dollar question is why would using AIO in the kernel be faster than using AIO in userspace? Actually for me a more important

Re: [Qemu-devel] [RFC v9 18/27] virtio-blk: Call ioctl() directly instead of irqfd

2012-07-19 Thread Stefan Hajnoczi
On Wed, Jul 18, 2012 at 4:40 PM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jul 18, 2012 at 04:07:45PM +0100, Stefan Hajnoczi wrote: Optimize for the MSI-X enabled and vector unmasked case where it is possible to issue the KVM ioctl() directly instead of using irqfd. Why? Is an ioctl

Re: [Qemu-devel] [RFC v9 06/27] virtio-blk: Take PCI memory range into account

2012-07-19 Thread Stefan Hajnoczi
On Wed, Jul 18, 2012 at 7:29 PM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jul 18, 2012 at 04:07:33PM +0100, Stefan Hajnoczi wrote: Support 4 GB physical memory accesses. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Need some sane APIs, this is just too scary. Yes

Re: [Qemu-devel] [RFC v9 06/27] virtio-blk: Take PCI memory range into account

2012-07-19 Thread Stefan Hajnoczi
On Thu, Jul 19, 2012 at 10:14 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Wed, Jul 18, 2012 at 7:29 PM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jul 18, 2012 at 04:07:33PM +0100, Stefan Hajnoczi wrote: Support 4 GB physical memory accesses. Signed-off-by: Stefan Hajnoczi stefa

Re: [Qemu-devel] [RFC v9 00/27] virtio: virtio-blk data plane

2012-07-19 Thread Stefan Hajnoczi
On Wed, Jul 18, 2012 at 4:49 PM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jul 18, 2012 at 04:07:27PM +0100, Stefan Hajnoczi wrote: This series implements a dedicated thread for virtio-blk processing using Linux AIO for raw image files only. It is based on qemu-kvm.git a0bc8c3

Re: Re: How to get the real device in guest os after attached a disk?

2012-07-18 Thread Stefan Hajnoczi
On Wed, Jul 18, 2012 at 5:01 AM, Wangpan hzwang...@corp.netease.com wrote: But how can I get the serial info in the guest os? General documentation on persistent block device naming (just grabbed the first useful link of Google):

Re: [PATCH 0/5] Add vhost-blk support

2012-07-18 Thread Stefan Hajnoczi
On Wed, Jul 18, 2012 at 9:12 AM, Asias He as...@redhat.com wrote: On 07/17/2012 07:11 PM, Stefan Hajnoczi wrote: On Tue, Jul 17, 2012 at 10:21 AM, Asias He as...@redhat.com wrote: On 07/17/2012 04:52 PM, Paolo Bonzini wrote: Il 17/07/2012 10:29, Asias He ha scritto: So, vhost-blk

Re: [PATCH RESEND 0/5] Add vhost-blk support

2012-07-18 Thread Stefan Hajnoczi
On Tue, Jul 17, 2012 at 4:09 PM, Michael S. Tsirkin m...@redhat.com wrote: On Fri, Jul 13, 2012 at 04:55:06PM +0800, Asias He wrote: Hi folks, [I am resending to fix the broken thread in the previous one.] This patchset adds vhost-blk support. vhost-blk is a in kernel virito-blk device

[RFC v9 00/27] virtio: virtio-blk data plane

2012-07-18 Thread Stefan Hajnoczi
path. Image file formats, protocols, and other block layer features are not supported by virtio-blk-data-plane. Git repo: http://repo.or.cz/w/qemu-kvm/stefanha.git/shortlog/refs/heads/virtio-blk-data-plane Stefan Hajnoczi (27): virtio-blk: Remove virtqueue request handling code virtio-blk

[RFC v9 02/27] virtio-blk: Set up host notifier for data plane

2012-07-18 Thread Stefan Hajnoczi
Set up the virtqueue notify ioeventfd that the data plane will monitor. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/virtio-blk.c | 37 + 1 file changed, 37 insertions(+) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index a627427

[RFC v9 03/27] virtio-blk: Data plane thread event loop

2012-07-18 Thread Stefan Hajnoczi
code can be done once on virtio-blk init/cleanup instead of each time the virtio device is brought up/down by the driver. Only the vring address and the notify pio address change. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/virtio-blk.c | 125

[RFC v9 05/27] virtio-blk: Do cheapest possible memory mapping

2012-07-18 Thread Stefan Hajnoczi
-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/virtio-blk.c | 58 --- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 4c790a3..abd9386 100644 --- a/hw/virtio-blk.c +++ b/hw

[RFC v9 04/27] virtio-blk: Map vring

2012-07-18 Thread Stefan Hajnoczi
Map the vring to host memory so it can be accessed without the overhead of the QEMU memory functions. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/virtio-blk.c | 44 1 file changed, 44 insertions(+) diff --git a/hw/virtio-blk.c

[RFC v9 01/27] virtio-blk: Remove virtqueue request handling code

2012-07-18 Thread Stefan Hajnoczi
Start with a clean slate, a virtio-blk device that supports virtio lifecycle operations and configuration but doesn't do any actual I/O. The I/O is going to happen in a separate optimized data plane thread. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/virtio-blk.c | 496

[RFC v9 08/27] virtio-blk: Read requests from the vring

2012-07-18 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/dataplane/vring.h |8 +-- hw/virtio-blk.c | 62 ++ 2 files changed, 59 insertions(+), 11 deletions(-) diff --git a/hw/dataplane/vring.h b/hw/dataplane/vring.h index

[RFC v9 09/27] virtio-blk: Add Linux AIO queue

2012-07-18 Thread Stefan Hajnoczi
Requests read from the vring will be placed in a queue where they can be merged as necessary. Once all requests have been read from the vring, the queue can be submitted. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/dataplane/ioq.h | 104

[RFC v9 12/27] virtio-blk: Add workaround for BUG_ON() dependency in virtio_ring.h

2012-07-18 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/dataplane/vring.h |5 + 1 file changed, 5 insertions(+) diff --git a/hw/dataplane/vring.h b/hw/dataplane/vring.h index 3eab4b4..44ef4a9 100644 --- a/hw/dataplane/vring.h +++ b/hw/dataplane/vring.h @@ -1,6 +1,11 @@ #ifndef

<    1   2   3   4   5   6   7   8   9   >