Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-15 Thread Stefan Hajnoczi
On Thu, Aug 15, 2013 at 10:26:36AM +0800, Wenchao Xia wrote: 于 2013-8-14 15:53, Stefan Hajnoczi 写道: On Wed, Aug 14, 2013 at 3:54 AM, Wenchao Xia xiaw...@linux.vnet.ibm.com wrote: 于 2013-8-13 16:21, Stefan Hajnoczi 写道: On Tue, Aug 13, 2013 at 4:53 AM, Wenchao Xia xiaw

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-14 Thread Stefan Hajnoczi
On Wed, Aug 14, 2013 at 3:54 AM, Wenchao Xia xiaw...@linux.vnet.ibm.com wrote: 于 2013-8-13 16:21, Stefan Hajnoczi 写道: On Tue, Aug 13, 2013 at 4:53 AM, Wenchao Xia xiaw...@linux.vnet.ibm.com wrote: 于 2013-8-12 19:33, Stefan Hajnoczi 写道: On Mon, Aug 12, 2013 at 12:26 PM, Alex Bligh

Re: KVM Block Device Driver

2013-08-14 Thread Stefan Hajnoczi
On Wed, Aug 14, 2013 at 10:40:06AM +0800, Fam Zheng wrote: On Tue, 08/13 16:13, Spensky, Chad - 0559 - MITLL wrote: Hi All, I'm working with some disk introspection on KVM, and we trying to create a shadow image of the disk. We've hooked the functions in block.c, in particular

Re: KVM Block Device Driver

2013-08-14 Thread Stefan Hajnoczi
On Wed, Aug 14, 2013 at 07:29:53AM -0400, Spensky, Chad - 0559 - MITLL wrote: We are trying to keep an active shadow copy while the system is running without any need for pausing. More precisely we want to log every individual access to the drive into a database so that the entire stream of

Re: Oracle RAC in libvirt+KVM environment

2013-08-14 Thread Stefan Hajnoczi
On Wed, Aug 14, 2013 at 04:40:44PM +0800, Timon Wang wrote: I found a article about Hyper-V virtual Fiber Channel, I think this will make Failover Cluster work if KVM has the same feature. http://technet.microsoft.com/en-us/library/hh831413.aspx Hyper-V uses NPIV for virtual Fiber Channel, I

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-13 Thread Stefan Hajnoczi
On Tue, Aug 13, 2013 at 4:53 AM, Wenchao Xia xiaw...@linux.vnet.ibm.com wrote: 于 2013-8-12 19:33, Stefan Hajnoczi 写道: On Mon, Aug 12, 2013 at 12:26 PM, Alex Bligh a...@alex.org.uk wrote: --On 12 August 2013 11:59:03 +0200 Stefan Hajnoczi stefa...@gmail.com wrote: The idea

Re: Oracle RAC in libvirt+KVM environment

2013-08-13 Thread Stefan Hajnoczi
On Mon, Aug 12, 2013 at 06:17:51PM +0800, Timon Wang wrote: Yes, SCSI bus likes pass through a shared LUN to the vm, and I am using a shared LUN for 'share' purpose. I found a post that vmware use lsilogic bus for the shared disk, but my qemu/kvm version can't support lsilogic bus. I'm

Re: Oracle RAC in libvirt+KVM environment

2013-08-12 Thread Stefan Hajnoczi
On Fri, Aug 02, 2013 at 01:58:24PM +0800, Timon Wang wrote: We wan't to setup two Oracle instance and make RAC work on them. Both VM are setup based on libvirt + KVM, we use a lvm lun which formated in qcow2 format and set the shareable properties in the disk driver like this: disk

Re: Oracle RAC in libvirt+KVM environment

2013-08-12 Thread Stefan Hajnoczi
On Sat, Aug 10, 2013 at 11:14:39AM +0800, Timon Wang wrote: I have tryied change the disk bus to SCSI, add a SCSI controller whose model is virtio-scsi, still can't setup the RAC instance. I tried to use windows 2008 Failover Cluster feature to setup a a Failover Cluster instead, and I can't

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-12 Thread Stefan Hajnoczi
On Fri, Aug 09, 2013 at 10:20:49AM +, Chijianchun wrote: Now in KVM, when RAM snapshot, vcpus needs stopped, it is Unfriendly restrictions to users. Are there plans to achieve ram live Snapshot feature? in my mind, Snapshots can not occupy additional too much memory, So when the

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-12 Thread Stefan Hajnoczi
On Mon, Aug 12, 2013 at 12:26 PM, Alex Bligh a...@alex.org.uk wrote: --On 12 August 2013 11:59:03 +0200 Stefan Hajnoczi stefa...@gmail.com wrote: The idea that was discussed on qemu-de...@nongnu.org uses fork(2) to capture the state of guest RAM and then send it back to the parent process

Re: FAQ on linux-kvm.org has broken link

2013-08-06 Thread Stefan Hajnoczi
On Mon, Aug 05, 2013 at 10:59:45PM +0200, folkert wrote: Two approaches to get closer to the source of the problem: 1. Try the latest vanilla kernel on the host (Linux 3.10.5). This way you can rule out fixed bugs in vhost_net or tap. 2. Get the system into the bad state and then do

Re: FAQ on linux-kvm.org has broken link

2013-08-05 Thread Stefan Hajnoczi
On Fri, Aug 02, 2013 at 08:06:58PM +0200, folkert wrote: A couple of questions: Please post the QEMU command-line from the host (ps aux | grep qemu). I'll post them all: - UMTS-clone: this one works fine since it was created a weak ago - belle: this one was fine but suddenly also showed

Re: [Bug 60620] guest loses frequently (multiple times per day!) connectivity to network device

2013-08-02 Thread Stefan Hajnoczi
On Fri, Aug 02, 2013 at 11:28:45AM +, bugzilla-dae...@bugzilla.kernel.org wrote: https://bugzilla.kernel.org/show_bug.cgi?id=60620 --- Comment #9 from Folkert van Heusden folk...@vanheusden.com --- Good news! If I - bring down all interfaces in the guest (ifdown eth0...) - rmmod

Re: FAQ on linux-kvm.org has broken link

2013-08-02 Thread Stefan Hajnoczi
On Fri, Aug 2, 2013 at 1:37 PM, folkert folk...@vanheusden.com wrote: If the result is #2, check firewalls on host and guest. Also try the following inside the guest: disable the network interface, rmmod virtio_net, modprobe virtio_net again, and bring the network up. I pinged, I sniffed, I

Re: FAQ on linux-kvm.org has broken link

2013-07-31 Thread Stefan Hajnoczi
On Tue, Jul 30, 2013 at 10:45:20PM +0200, folkert wrote: If you keep losing network connectivity you may have a MAC or IP address conflict. The symptom is that network traffic is intermittent - for example, ping might work but a full TCP connection does not. I submitted a bug at bugzilla

Re: FAQ on linux-kvm.org has broken link

2013-07-30 Thread Stefan Hajnoczi
On Tue, Jul 30, 2013 at 03:18:53AM +0200, folkert wrote: The link at: http://www.linux-kvm.org/page/FAQ#My_guest_network_is_stuck_what_should_I_do.3F pointing to: http://qemu-buch.de/cgi-bin/moin.cgi/QemuNetwork is broken: it gives a Internal server error message. Please someone point me

Re: VU#976534 - How to submit security bugs?

2013-07-24 Thread Stefan Hajnoczi
On Mon, Jul 22, 2013 at 02:49:50PM -0400, CERT(R) Coordination Center wrote: My name is Adam Rauf and I work for the CERT Coordination Center. We have a report that may affect KVM/QEMU. How can we securely send it over to you? Thanks so much! Paolo, Gleb, Anthony: Is this already

Re: disk corruption after virsh destroy

2013-07-03 Thread Stefan Hajnoczi
On Tue, Jul 02, 2013 at 10:40:11AM -0400, Brian J. Murrell wrote: I have a cluster of VMs setup with shared virtio-scsi disks. The purpose of sharing a disk is that if a VM goes down, another can pick up and mount the (ext4) filesystem on shared disk a provide service to it. But just to be

Re: i/o threads

2013-06-27 Thread Stefan Hajnoczi
On Wed, Jun 26, 2013 at 03:53:21PM +0200, folkert wrote: I noticed that on my 3 VMs running server, that there are 10-20 threads doing i/o. As the VMs are running on HDDs and not SSDs I think that is counterproductive: won't these threads make the HDDs seek back and forth constantly? The

Google Summer of Code 2013 has started

2013-06-26 Thread Stefan Hajnoczi
It is a pleasure to welcome the following GSoC 2013 students to the QEMU, KVM, and libvirt communities: Libvirt Wireshark Dissector - Yuto KAWAMURA (kawamuray) http://qemu-project.org/Features/LibvirtWiresharkDissector Libvirt Introduce API to query IP addresses for given domain - Nehal J. Wani

Re: Would a DOS on dovecot running under a VM cause host to crash?

2013-06-24 Thread Stefan Hajnoczi
On Fri, Jun 21, 2013 at 10:27:07AM +1200, Hugh Davenport wrote: The attack lasted around 4 minutes, in which there was 1161 lines in the log for a single attacker ip, and no other similar logs previously. Would this be enough to kill not only the VM running dovecot, but the underlying host

Re: cache write back barriers

2013-06-14 Thread Stefan Hajnoczi
On Thu, Jun 13, 2013 at 10:47:32AM +0200, folkert wrote: Hi, In virt-manager I saw that there's the option for cache writeback for storage devices. I'm wondering: does this also make kvm to ignore write barriers invoked by the virtual machine? No, that would be unsafe. When

Re: cache write back barriers

2013-06-13 Thread Stefan Hajnoczi
On Wed, Jun 12, 2013 at 10:03:10AM +0200, folkert wrote: In virt-manager I saw that there's the option for cache writeback for storage devices. I'm wondering: does this also make kvm to ignore write barriers invoked by the virtual machine? No, that would be unsafe. When the guest issues a

Re: VirtIO and BSOD On Windows Server 2003

2013-06-04 Thread Stefan Hajnoczi
On Mon, Jun 03, 2013 at 09:56:41AM -0700, Aaron Clausen wrote: I recently built a new kvm server with Debian Wheezy which comes with KVM 1.1.2 and when I moved this guest over, I immediately started getting BSODs (0x007). I disabled virtio block driver and then attempted to upgrade to the

Re: Redirections from virtual interfaces.

2013-06-03 Thread Stefan Hajnoczi
On Fri, May 31, 2013 at 11:10:24AM -0300, Targino SIlveira wrote: I have an server with only one NIC, this NIC has a Public IP, this server is locate in a data center, I can't have more than one, but I can have many IP's, so I would like to know if I can redirect packages from virtual

Re: updated: kvm networking todo wiki

2013-05-30 Thread Stefan Hajnoczi
On Thu, May 30, 2013 at 7:23 AM, Rusty Russell ru...@rustcorp.com.au wrote: Anthony Liguori anth...@codemonkey.ws writes: Rusty Russell ru...@rustcorp.com.au writes: On Fri, May 24, 2013 at 08:47:58AM -0500, Anthony Liguori wrote: FWIW, I think what's more interesting is using vhost-net as a

Re: [PATCH] kvm: exclude ioeventfd from counting kvm_io_range limit

2013-05-27 Thread Stefan Hajnoczi
in kvm_host.h Signed-off-by: Amos Kong ak...@redhat.com --- include/linux/kvm_host.h | 3 ++- virt/kvm/eventfd.c | 2 ++ virt/kvm/kvm_main.c | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) Reviewed-by: Stefan Hajnoczi stefa...@redhat.com -- To unsubscribe from

Re: [PATCH] kvm: add detail error message when fail to add ioeventfd

2013-05-23 Thread Stefan Hajnoczi
On Wed, May 22, 2013 at 09:48:21PM +0800, Amos Kong wrote: On Wed, May 22, 2013 at 11:32:27AM +0200, Stefan Hajnoczi wrote: On Wed, May 22, 2013 at 12:57:35PM +0800, Amos Kong wrote: I try to hotplug 28 * 8 multiple-function devices to guest with old host kernel, ioeventfds in host kernel

Re: [PATCH] kvm: add detail error message when fail to add ioeventfd

2013-05-22 Thread Stefan Hajnoczi
-off-by: Amos Kong ak...@redhat.com --- kvm-all.c |4 1 files changed, 4 insertions(+), 0 deletions(-) It would be nice to make kvm bus scalable so that the hardcoded in-kernel I/O device limit can be lifted. Reviewed-by: Stefan Hajnoczi stefa...@redhat.com -- To unsubscribe from

Re: 2013 Linux Plumbers Virtualization Microconference proposal call for participation

2013-05-17 Thread Stefan Hajnoczi
On Thu, May 16, 2013 at 02:32:30PM -0600, Alex Williamson wrote: We'd like to hold another virtualization microconference as part of this year's Linux Plumbers Conference. To do so, we need to show that there's enough interest, materials, and people willing to attend. Convenience info:

Re: how emulated disk IO translated to physical disk IO on host side

2013-05-10 Thread Stefan Hajnoczi
On Tue, May 07, 2013 at 09:58:52AM -0500, sheng qiu wrote: i am trying to figure out the code path which translate the emulated disk IO issued by VM to actual physical disk IO on host side. Can anyone give me a clear view about this? For an overview of the stack:

Re: [Qemu-devel] KVM call minutes for 2013-04-23

2013-04-24 Thread Stefan Hajnoczi
On Tue, Apr 23, 2013 at 10:06:41AM -0600, Eric Blake wrote: On 04/23/2013 08:45 AM, Juan Quintela wrote: we can change drive_mirror to use a new command to see if there are the new features. drive-mirror changed in 1.4 to add optional buf-size parameter; right now, libvirt is forced

Re: Fwd: kvm

2013-04-23 Thread Stefan Hajnoczi
On Mon, Apr 22, 2013 at 10:59:25AM +0100, Gary Lloyd wrote: I was wondering if anyone could help me with an issue with KVM and ISCSI. If we restart a controller on our EqualLogic SAN or there are any network interruptions on the storage network, KVM guests throw a wobbler and their files

Re: [User Question] Repeated severe performance problems on guest

2013-04-18 Thread Stefan Hajnoczi
On Wed, Apr 17, 2013 at 09:52:39PM +0200, Martin Wawro wrote: Hi Stefan, The host is interesting too if you suspect KVM is involved in the performance issue (rather than it being purely an application issue inside the guest). For example, pidstat (from the sysstat package) on the host

Re: [User Question] Repeated severe performance problems on guest

2013-04-18 Thread Stefan Hajnoczi
On Thu, Apr 18, 2013 at 12:00 PM, Martin Wawro martin.wa...@gmail.com wrote: On 04/18/2013 09:25 AM, Stefan Hajnoczi wrote: I see. That's a good reason to carefully monitor the host for things that could interfere with guest performance. Stefan Seems that today is a bad day for our server

Re: [User Question] Repeated severe performance problems on guest

2013-04-18 Thread Stefan Hajnoczi
On Thu, Apr 18, 2013 at 03:27:45PM +0200, Martin Wawro wrote: On 04/18/2013 03:14 PM, Stefan Hajnoczi wrote: No answer but some more questions. Regarding the kvm_stat output, the exits are caused by 68,000 pagefaults/second (pf_fixed). Perhaps someone can explain what this means

Re: [User Question] Repeated severe performance problems on guest

2013-04-17 Thread Stefan Hajnoczi
On Tue, Apr 16, 2013 at 09:49:20AM +0200, Martin Wawro wrote: On 04/16/2013 07:49 AM, Stefan Hajnoczi wrote: Besides the kvm_stat, general performance data from the host is useful when dealing with high load averages. Do you have vmstat or sar data for periods of time when the machine

Re: [RFC] provide an API to userspace doing memory snapshot

2013-04-17 Thread Stefan Hajnoczi
On Tue, Apr 16, 2013 at 03:54:15PM +0800, Wenchao Xia wrote: 于 2013-4-16 13:51, Stefan Hajnoczi 写道: On Mon, Apr 15, 2013 at 09:03:36PM +0800, Wenchao Xia wrote: I'd like to add/export an function which allow userspace program to take snapshot for a region of memory. Since

Re: Perf tuning help?

2013-04-17 Thread Stefan Hajnoczi
On Tue, Apr 16, 2013 at 04:30:17PM -0400, Mason Turner wrote: We have an in-house app, written in c, that is not performing as well as we'd hoped it would when moving to a VM. We've tried all the common tuning recommendations (virtio, tap interface, cpu pining), without any change in

Re: [User Question] Repeated severe performance problems on guest

2013-04-15 Thread Stefan Hajnoczi
On Fri, Apr 12, 2013 at 05:04:27PM +0200, Martin Wawro wrote: Logging the kvm_stat on the host, we obtained the following output during Besides the kvm_stat, general performance data from the host is useful when dealing with high load averages. Do you have vmstat or sar data for periods of time

Re: [RFC] provide an API to userspace doing memory snapshot

2013-04-15 Thread Stefan Hajnoczi
On Mon, Apr 15, 2013 at 09:03:36PM +0800, Wenchao Xia wrote: I'd like to add/export an function which allow userspace program to take snapshot for a region of memory. Since it is not implemented yet I will describe it as C APIs, it is quite simple now and if it is worthy I'll improve the

Re: [Qemu-devel] reply: reply: qemu crashed when starting vm(kvm) with vnc connect

2013-04-11 Thread Stefan Hajnoczi
On Mon, Apr 08, 2013 at 12:27:06PM +, Zhanghaoyu (A) wrote: On Sun, Apr 07, 2013 at 04:58:07AM +, Zhanghaoyu (A) wrote: I start a kvm VM with vnc(using the zrle protocol) connect, sometimes qemu program crashed during starting period, received signal SIGABRT. Trying about 20

Re: [Qemu-devel] KVM call agenda for 2013-04-09

2013-04-09 Thread Stefan Hajnoczi
Meeting notes on Abel's presentation: Aim: improve vhost scalability Shared vhost thread == Problem: Linux scheduler does not see state of virtqueues, cannot make good scheduling decisions Solution: Shared thread serves multiple VMs and therefore influences I/O scheduling instead of

Re: Virtualbox svga card in KVM

2013-04-08 Thread Stefan Hajnoczi
On Fri, Apr 05, 2013 at 04:52:05PM -0700, Sriram Murthy wrote: For starters, virtual box has better SVGA WDDM drivers that allows for a much richer display when the VM display is local. What does much richer display mean? Stefan -- To unsubscribe from this list: send the line unsubscribe kvm

Re: 答复: [Qemu-devel] qemu crashed when starting vm(kvm) with vnc connect

2013-04-08 Thread Stefan Hajnoczi
On Sun, Apr 07, 2013 at 04:58:07AM +, Zhanghaoyu (A) wrote: I start a kvm VM with vnc(using the zrle protocol) connect, sometimes qemu program crashed during starting period, received signal SIGABRT. Trying about 20 times, this crash may be reproduced. I guess the cause memory

Re: [Qemu-devel] [PATCH uq/master v2 0/2] Add some tracepoints for clarification of the cause of troubles

2013-04-08 Thread Stefan Hajnoczi
On Fri, Mar 29, 2013 at 01:24:25PM +0900, Kazuya Saito wrote: This series adds tracepoints for helping us clarify the cause of troubles. Virtualization on Linux is composed of some components such as qemu, kvm, libvirt, and so on. So it is very important to clarify firstly and swiftly the

We've been accepted to Google Summer of Code 2013

2013-04-08 Thread Stefan Hajnoczi
Good news! QEMU.org has been accepted to Google Summer of Code 2013. This means students can begin considering our list of QEMU, kvm kernel module, and libvirt project ideas: http://qemu-project.org/Google_Summer_of_Code_2013 Student applications open April 22 at 19:00 UTC. You can already

Re: [Qemu-devel] qemu crashed when starting vm(kvm) with vnc connect

2013-04-05 Thread Stefan Hajnoczi
On Tue, Apr 02, 2013 at 09:02:02AM +, Zhanghaoyu (A) wrote: I start a kvm VM with vnc(using the zrle protocol) connect, sometimes qemu program crashed during starting period, received signal SIGABRT. Trying about 20 times, this crash may be reproduced. I guess the cause memory corruption

Re: Virtualbox svga card in KVM

2013-04-05 Thread Stefan Hajnoczi
On Thu, Mar 21, 2013 at 10:53:21AM -0400, Alon Levy wrote: I am planning on bringing in the virtualbox svga card into kvm as a new svga card type (vbox probably?) so that we can load the VirtualBox SVGA card drivers in the guest. I'm curious if the vbox SVGA card has features

Re: [Qemu-devel] KVM call agenda for 2013-03-26

2013-03-26 Thread Stefan Hajnoczi
On Mon, Mar 25, 2013 at 08:13:34PM -0500, Rob Landley wrote: On 03/25/2013 08:17:44 AM, Juan Quintela wrote: Hi Please send in any agenda topics you are interested in. Later, Juan. If Google summer of code is still open: http://qemu-project.org/Google_Summer_of_Code_2013 Project

QEMU has applied for Google Summer of Code 2013

2013-03-22 Thread Stefan Hajnoczi
QEMU.org has applied for Google Summer of Code 2013 and also aims to be an umbrella organization for libvirt and the KVM kernel module. Accepted mentoring organizations will be announced on April 8 at 19:00 UTC at http://google-melange.com/. This year we have proposed 5 QEMU project ideas, 1 KVM

Re: [PATCH] virtio-blk: Set default serial id

2013-03-20 Thread Stefan Hajnoczi
On Wed, Mar 20, 2013 at 01:56:08PM +0800, Asias He wrote: If user does not specify a serial id, e.g. -device virtio-blk-pci,serial=serial_id or -drive serial=serial_id no serial id will be assigned. Add a default serial id in this case to help identifying the disk in guest.

Re: [PATCH V3 WIP 2/3] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-19 Thread Stefan Hajnoczi
On Tue, Mar 19, 2013 at 08:34:44AM +0800, Asias He wrote: +static void vhost_scsi_stop(VHostSCSI *vs, VirtIODevice *vdev) +{ +int ret = 0; + +if (!vdev-binding-set_guest_notifiers) { +ret = vdev-binding-set_guest_notifiers(vdev-binding_opaque, +

Re: [PATCH V3 WIP 3/3] disable vhost_verify_ring_mappings check

2013-03-19 Thread Stefan Hajnoczi
On Tue, Mar 19, 2013 at 08:34:45AM +0800, Asias He wrote: --- hw/vhost.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/vhost.c b/hw/vhost.c index 4d6aee3..0c52ec4 100644 --- a/hw/vhost.c +++ b/hw/vhost.c @@ -421,10 +421,12 @@ static void vhost_set_memory(MemoryListener

Re: Can I bridge the loopback?

2013-03-18 Thread Stefan Hajnoczi
On Sat, Mar 16, 2013 at 12:06:30AM -0500, Steve wrote: Here's the issue. I want to communicate between virtual machines, second Ethernet virtual port. But I would like to use the host loopback for that so as to not be limited to Ethernet port speeds, for large copies, etc. Right now, the

Re: [PATCH V2 WIP 2/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-12 Thread Stefan Hajnoczi
On Tue, Mar 12, 2013 at 02:29:42PM +0800, Asias He wrote: diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index 39c1966..4a97ca1 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c These changes break the build for non-Linux hosts. Please introduce a CONFIG_VHOST_SCSI and #ifdef appropriate

Re: win2k guest vm won't boot under Fedora 18 KVM

2013-03-11 Thread Stefan Hajnoczi
On Sat, Mar 09, 2013 at 12:43:32PM -0700, Earl Marwil wrote: Hi, I'm looking for some guidance on how to get to the root cause of an issue that I am observing with a win2k guest that won't boot under Fedora 18 on one system but will boot on another. A few days ago I posted on the fedora

Re: KVM call agenda for 2013-03-12

2013-03-11 Thread Stefan Hajnoczi
On Mon, Mar 11, 2013 at 4:42 PM, Juan Quintela quint...@redhat.com wrote: Please send in any agenda topics you are interested in. Overview of mentoring for Google Summer of Code 2013: * Post project ideas here: http://wiki.qemu.org/Google_Summer_of_Code_2013 * Who can be a mentor? * What's

Re: [PATCH V2 0/6] tcm_vhost hotplug/hotunplug support and locking/flushing fix

2013-03-08 Thread Stefan Hajnoczi
-- drivers/vhost/tcm_vhost.h | 10 ++ 2 files changed, 247 insertions(+), 6 deletions(-) -- 1.8.1.4 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

Re: kvm + ceph performance issues

2013-03-08 Thread Stefan Hajnoczi
On Thu, Mar 07, 2013 at 12:57:55PM +0100, Wolfgang Hennerbichler wrote: I'm running a virtual machine with the following command: LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 4096 -smp

Re: [PATCH 5/5] tcm_vhost: Add hotplug/hotunplug support

2013-03-07 Thread Stefan Hajnoczi
On Thu, Mar 07, 2013 at 08:26:20AM +0800, Asias He wrote: On Wed, Mar 06, 2013 at 10:21:09AM +0100, Stefan Hajnoczi wrote: On Wed, Mar 06, 2013 at 02:16:30PM +0800, Asias He wrote: +static struct tcm_vhost_evt *tcm_vhost_allocate_evt(struct vhost_scsi *vs, + u32 event, u32 reason

Re: [PATCH 5/5] tcm_vhost: Add hotplug/hotunplug support

2013-03-07 Thread Stefan Hajnoczi
On Thu, Mar 07, 2013 at 05:47:26PM +0800, Asias He wrote: On Thu, Mar 07, 2013 at 09:58:04AM +0100, Stefan Hajnoczi wrote: On Thu, Mar 07, 2013 at 08:26:20AM +0800, Asias He wrote: On Wed, Mar 06, 2013 at 10:21:09AM +0100, Stefan Hajnoczi wrote: On Wed, Mar 06, 2013 at 02:16:30PM +0800

Re: [PATCH 2/5] tcm_vhost: Introduce tcm_vhost_check_feature()

2013-03-06 Thread Stefan Hajnoczi
On Wed, Mar 06, 2013 at 02:16:27PM +0800, Asias He wrote: This helper is useful to check if a feature is supported. Signed-off-by: Asias He as...@redhat.com --- drivers/vhost/tcm_vhost.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/vhost/tcm_vhost.c

Re: Tracing kvm: kvm_entry and kvm_exit

2013-02-28 Thread Stefan Hajnoczi
On Thu, Feb 28, 2013 at 5:49 AM, David Ahern dsah...@gmail.com wrote: On 2/27/13 9:39 AM, David Ahern wrote: I have been playing with the live mode a bit lately. I'll add a debug to note 2 consecutive entry events without an exit -- see if it sheds some light on it. If you feel game take

Re: [Qemu-devel] [PATCH v3 4/5] KVM: ioeventfd for virtio-ccw devices.

2013-02-26 Thread Stefan Hajnoczi
On Tue, Feb 26, 2013 at 12:55:36PM +0200, Michael S. Tsirkin wrote: On Mon, Feb 25, 2013 at 04:27:49PM +0100, Cornelia Huck wrote: diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index f0ced1a..8de3cd7 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c @@ -679,11 +679,16 @@

Re: [PATCH v3 4/5] KVM: ioeventfd for virtio-ccw devices.

2013-02-26 Thread Stefan Hajnoczi
On Mon, Feb 25, 2013 at 04:27:49PM +0100, Cornelia Huck wrote: diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index f0ced1a..8de3cd7 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c @@ -679,11 +679,16 @@ static int kvm_assign_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd

Re: Is there any solution in KVM that like VAAI does in EXSI

2013-02-26 Thread Stefan Hajnoczi
On Tue, Feb 26, 2013 at 01:49:42PM +0800, Timon Wang wrote: Is there any solution in KVM that works like VAAI does in EXSI, I found a PPT that posted in Sep. 2012, which said that storage offload will be consider in future. I am wondering anybody knows about this, or provide some information

Re: Tracing kvm: kvm_entry and kvm_exit

2013-02-25 Thread Stefan Hajnoczi
On Fri, Feb 22, 2013 at 11:34:27AM -0500, Mohamad Gebai wrote: I am tracing kvm using perf and I am analyzing the sequences of kvm_entry and kvm_exit tracepoints. I noticed that during the boot process of a VM, there are a lot more (2 to 3 as many times) kvm_entry event than there are

Re: qemu help documentation

2013-02-15 Thread Stefan Hajnoczi
On Thu, Feb 14, 2013 at 02:22:51PM +0100, Paolo Pedaletti wrote: I have trouble to get full list of the output of qemu help inside kvm when I switch to second console CTRL-ALT-2 I can't find the full list even inside source code (apt-get source qemu-kvm) and neither inside binary file (grep

Re: Win2003 disk corruption with kvm-1.0. and virtio

2013-02-14 Thread Stefan Hajnoczi
On Wed, Feb 13, 2013 at 10:53:14AM +0100, Sylvain Bauza wrote: As per documentation, Nova (Openstack Compute layer) is doing a 'qemu-img convert -s' against a running instance. http://docs.openstack.org/trunk/openstack-compute/admin/content/creating-images-from-running-instances.html That

Re: Win2003 disk corruption with kvm-1.0. and virtio

2013-02-14 Thread Stefan Hajnoczi
On Tue, Feb 12, 2013 at 03:30:37PM +0100, Sylvain Bauza wrote: We currently run Openstack Essex hosts with KVM-1.0 (Ubuntu 12.04) instances with qcow2,virtio,cache=none For Linux VMs, no trouble at all but we do observe filesystem corruption and inconsistency (missing DLLs, CHKDSK asked by

Re: Google Summer of Code 2013 ideas wiki open

2013-02-14 Thread Stefan Hajnoczi
On Thu, Feb 14, 2013 at 11:39 AM, harryxiyou harryxi...@gmail.com wrote: On Tue, Feb 12, 2013 at 5:21 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Feb 7, 2013 at 4:19 PM, Stefan Hajnoczi stefa...@gmail.com wrote: I believe Google will announce GSoC again this year

Re: Win2003 disk corruption with kvm-1.0. and virtio

2013-02-13 Thread Stefan Hajnoczi
On Tue, Feb 12, 2013 at 03:30:37PM +0100, Sylvain Bauza wrote: We currently run Openstack Essex hosts with KVM-1.0 (Ubuntu 12.04) instances with qcow2,virtio,cache=none For Linux VMs, no trouble at all but we do observe filesystem corruption and inconsistency (missing DLLs, CHKDSK asked by

Re: Google Summer of Code 2013 ideas wiki open

2013-02-11 Thread Stefan Hajnoczi
On Thu, Feb 7, 2013 at 4:19 PM, Stefan Hajnoczi stefa...@gmail.com wrote: I believe Google will announce GSoC again this year (there is no guarantee though) and I have created the wiki page so we can begin organizing project ideas that students can choose from. Google Summer of Code 2013 has

Re: Google Summer of Code 2013 ideas wiki open

2013-02-07 Thread Stefan Hajnoczi
On Thu, Feb 7, 2013 at 4:19 PM, Stefan Hajnoczi stefa...@gmail.com wrote: CCed libvir-list to see if libvirt would like to do a joint application with QEMU. As mentioned, it's early days and GSoC 2013 has not been announced yet. I just want to start gathering ideas and seeing who is willing

Re: Investigating abnormal stealtimes

2013-02-05 Thread Stefan Hajnoczi
On Tue, Feb 5, 2013 at 1:26 AM, Marcelo Tosatti mtosa...@redhat.com wrote: - 'Steal time' is the amount of time taken while vcpu is able to run but not runnable. Maybe 'vmexit latency' is a better name. You are right, 'vmexit latency' is a better name. - Perhaps it would be good to subtract

Re: How to limit upload bandwidth for a guest server?

2013-02-05 Thread Stefan Hajnoczi
On Sun, Feb 03, 2013 at 07:59:07PM -0600, Neil Aggarwal wrote: I have a CentOS server using KVM to host guest servers. I am trying to limit the bandwidth usable by a guest server. I tried to use tc, but that is only limiting the download bandwidth to a server. It does not seem to filter

Re: [Qemu-devel] QEMU buildbot maintenance state

2013-01-31 Thread Stefan Hajnoczi
On Wed, Jan 30, 2013 at 10:31:22AM +0100, Gerd Hoffmann wrote: Hi, Gerd: Are you willing to co-maintain the QEMU buildmaster with Daniel and Christian? It would be awesome if you could do this given your experience running and customizing buildbot. I'll try to set aside some time

Re: [Qemu-devel] QEMU buildbot maintenance state

2013-01-31 Thread Stefan Hajnoczi
On Wed, Jan 30, 2013 at 10:31:22AM +0100, Gerd Hoffmann wrote: Hi, Gerd: Are you willing to co-maintain the QEMU buildmaster with Daniel and Christian? It would be awesome if you could do this given your experience running and customizing buildbot. I'll try to set aside some time

Re: QEMU buildbot maintenance state

2013-01-30 Thread Stefan Hajnoczi
On Tue, Jan 29, 2013 at 04:04:39PM +0100, Christian Berendt wrote: On 01/28/2013 03:29 PM, Daniel Gollub wrote: JFYI, the main buildbot configuration which controls everything (beside buildslave credentials) is accessible to everyone: http://people.b1-systems.de/~gollub/buildbot/ If you are

Investigating abnormal stealtimes

2013-01-29 Thread Stefan Hajnoczi
kvm:kvm_exit events are triggered when they happen too. I wanted to share in case it is useful for others. Suggestions for better approaches welcome! Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- #!/usr/bin/env python # perf script event handlers, generated by perf script -g python

Re: [Qemu-devel] QEMU buildbot maintenance state (was: Re: KVM call agenda for 2013-01-29)

2013-01-29 Thread Stefan Hajnoczi
On Mon, Jan 28, 2013 at 03:29:16PM +0100, Daniel Gollub wrote: If Daniel does not have sufficient time to administer it, can we maybe have that set up on qemu.org instead, with more than one person that has access to it? JFYI, I just requested if I am allowed to grant Stefan root access

Re: KVM call agenda for 2013-01-29

2013-01-28 Thread Stefan Hajnoczi
On Mon, Jan 28, 2013 at 11:59:40AM +0100, Juan Quintela wrote: Please send in any agenda topics you are interested in. Replacing select(2) so that we will not hit the 1024 fd_set limit in the future. Stefan -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message

Re: [QEMU PATCH v5 0/3] virtio-net: fix of ctrl commands

2013-01-23 Thread Stefan Hajnoczi
Michael S. Tsirkin (1): virtio-net: remove layout assumptions for ctrl vq hw/pc_piix.c|4 ++ hw/virtio-net.c | 142 +- hw/virtio-net.h | 26 +++ 3 files changed, 108 insertions(+), 64 deletions(-) Reviewed-by: Stefan

Re: [QEMU PATCH v4 1/3] virtio-net: remove layout assumptions for ctrl vq

2013-01-22 Thread Stefan Hajnoczi
On Tue, Jan 22, 2013 at 10:38:14PM +0800, Amos Kong wrote: On Mon, Jan 21, 2013 at 05:03:30PM +0100, Stefan Hajnoczi wrote: On Sat, Jan 19, 2013 at 09:54:26AM +0800, ak...@redhat.com wrote: From: Michael S. Tsirkin m...@redhat.com Virtio-net code makes assumption about virtqueue

Re: [QEMU PATCH v4 1/3] virtio-net: remove layout assumptions for ctrl vq

2013-01-21 Thread Stefan Hajnoczi
On Sat, Jan 19, 2013 at 09:54:26AM +0800, ak...@redhat.com wrote: From: Michael S. Tsirkin m...@redhat.com Virtio-net code makes assumption about virtqueue descriptor layout (e.g. sg[0] is the header, sg[1] is the data buffer). This patch makes code not rely on the layout of descriptors.

Re: [QEMU PATCH v4 2/3] virtio-net: introduce a new macaddr control

2013-01-21 Thread Stefan Hajnoczi
On Sat, Jan 19, 2013 at 09:54:27AM +0800, ak...@redhat.com wrote: @@ -350,6 +351,18 @@ static int virtio_net_handle_mac(VirtIONet *n, uint8_t cmd, struct virtio_net_ctrl_mac mac_data; size_t s; +if (cmd == VIRTIO_NET_CTRL_MAC_ADDR_SET) { +if (iov_size(iov, iov_cnt)

Re: [PATCH v4 2/3] net: split eth_mac_addr for better error handling

2013-01-21 Thread Stefan Hajnoczi
On Sun, Jan 20, 2013 at 10:43:08AM +0800, ak...@redhat.com wrote: From: Stefan Hajnoczi stefa...@gmail.com When we set mac address, software mac address in system and hardware mac address all need to be updated. Current eth_mac_addr() doesn't allow callers to implement error handling nicely

Re: [PATCH v2] virtio-spec: set mac address by a new vq command

2013-01-18 Thread Stefan Hajnoczi
On Thu, Jan 17, 2013 at 06:25:47PM +0800, ak...@redhat.com wrote: From: Amos Kong ak...@redhat.com Virtio-net driver currently programs MAC address byte by byte, this means that we have an intermediate step where mac is wrong. This patch introduced a new control command to set MAC address

Re: [PATCH v3 2/2] virtio-net: introduce a new control to set macaddr

2013-01-18 Thread Stefan Hajnoczi
On Thu, Jan 17, 2013 at 06:40:12PM +0800, ak...@redhat.com wrote: diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 395ab4f..837c978 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -802,14 +802,32 @@ static int virtnet_set_mac_address(struct

Re: [Qemu-devel] [QEMU PATCH v2] virtio-net: introduce a new macaddr control

2013-01-17 Thread Stefan Hajnoczi
On Thu, Jan 17, 2013 at 01:45:11PM +0800, Amos Kong wrote: On Thu, Jan 17, 2013 at 11:49:20AM +1030, Rusty Russell wrote: ak...@redhat.com writes: @@ -349,6 +351,14 @@ static int virtio_net_handle_mac(VirtIONet *n, uint8_t cmd, { struct virtio_net_ctrl_mac mac_data; +

Re: VirtIO id X is not a head!

2013-01-17 Thread Stefan Hajnoczi
On Wed, Jan 16, 2013 at 08:58:50PM +0100, Matthias Leinweber wrote: i try to implement a virtual device/driver, but i ran into some trouble using the virtio api. My implementation looks as follows: A kthread exposes memory via add_buf, kicks and sleeps. If a callback is issued he is woken up

Re: [QEMU PATCH v3] virtio-net: introduce a new macaddr control

2013-01-17 Thread Stefan Hajnoczi
compatibility make mac field in config space read-only when new feature is acked --- hw/pc_piix.c| 4 hw/virtio-net.c | 10 +- hw/virtio-net.h | 12 ++-- 3 files changed, 23 insertions(+), 3 deletions(-) Reviewed-by: Stefan Hajnoczi stefa...@redhat.com

Re: [QEMU PATCH v2] virtio-net: introduce a new macaddr control

2013-01-16 Thread Stefan Hajnoczi
On Wed, Jan 16, 2013 at 02:37:34PM +0800, Jason Wang wrote: On Wednesday, January 16, 2013 02:16:47 PM ak...@redhat.com wrote: From: Amos Kong ak...@redhat.com In virtio-net guest driver, currently we write MAC address to pci config space byte by byte, this means that we have an

Re: [PATCH] virtio-spec: set mac address by a new vq command

2013-01-16 Thread Stefan Hajnoczi
On Wed, Jan 16, 2013 at 03:33:24PM +0800, ak...@redhat.com wrote: +\change_inserted -1930653948 1358320004 +The command VIRTIO_NET_CTRL_MAC_ADDR_SET is used to set +\begin_inset Quotes eld +\end_inset + +physical +\begin_inset Quotes erd +\end_inset + + address of the network card. The

Re: [RFC PATCH] virtio-net: introduce a new macaddr control

2013-01-11 Thread Stefan Hajnoczi
On Thu, Jan 10, 2013 at 10:51:57PM +0800, ak...@redhat.com wrote: @@ -349,6 +351,13 @@ static int virtio_net_handle_mac(VirtIONet *n, uint8_t cmd, { struct virtio_net_ctrl_mac mac_data; +if (cmd == VIRTIO_NET_CTRL_MAC_ADDR_SET elem-out_num == 2) { +/* Set MAC address

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

2013-01-10 Thread Stefan Hajnoczi
On Wed, Jan 09, 2013 at 11:25:24PM +0800, Jason Wang wrote: On 01/09/2013 05:56 PM, Stefan Hajnoczi wrote: 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

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

2013-01-10 Thread Stefan Hajnoczi
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, Dec 28, 2012 at 06:31:52PM +0800, Jason Wang wrote: Perf Numbers: Two Intel Xeon 5620 with direct

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

2013-01-10 Thread Stefan Hajnoczi
On Fri, Dec 28, 2012 at 06:31:53PM +0800, Jason Wang wrote: Mainly suggestions to make the code easier to understand, but see the comment about the 1:1 queue/NetClientState model for a general issue with this approach. Recently, linux support multiqueue tap which could let userspace call

<    1   2   3   4   5   6   7   8   9   >