Re: [kvm-devel] [ANNOUNCE] kvm-guest-drivers-windows-2

2008-05-15 Thread Dor Laor
On Wed, 2008-05-14 at 23:09 +0200, Tomasz Chmielewski wrote: Anthony Liguori schrieb: (...) So, a PV network driver can do about 700Mb/s, and an emulated NIC can do about 600 Mb/s, Windows guest to host? That would be about 20% improvement? FWIW, virtio-net is much

Re: [kvm-devel] Crash with new guest drivers

2008-05-15 Thread Dor Laor
On Thu, 2008-05-15 at 11:11 -0700, Michael Lilie (mlilie) wrote: Running iperf with 100 connections crashes with the new virtio driver. The same setup works with e1000. BSOD data: DRIVER_IRQL_NOT_LESS_OR_EQUAL That's not good, I just tested the old driver with xp guest and it was ok.

Re: [kvm-devel] Windows PV driver for KVM

2008-05-14 Thread Dor Laor
On Wed, 2008-05-14 at 08:55 +0800, Jiang, Yunhong wrote: Hi, Dor, I just checked the URL and seems it is not updated still, willyou update it? Avi, since it passed regression, we can release it (also with the .pdb file). -- Yunhong Jiang Dor Laor mailto:[EMAIL PROTECTED] wrote: On Wed

Re: [kvm-devel] [ANNOUNCE] kvm-guest-drivers-windows-2

2008-05-14 Thread Dor Laor
On Wed, 2008-05-14 at 15:52 +0200, Tomasz Chmielewski wrote: Avi Kivity wrote: This is the second release of network drivers for Windows guests running on a kvm host. The drivers are intended for Windows 2000 and Windows XP, and Windows 2003. Both x86 and x64 variants are provided.

Re: [kvm-devel] [ANNOUNCE] kvm-guest-drivers-windows-2

2008-05-14 Thread Dor Laor
On Wed, 2008-05-14 at 17:49 +0200, Tomasz Chmielewski wrote: Dor Laor schrieb: (...) - PV Windows (network driver) About 700Mb+-, there is currently extra copy that we need to omit. Thanks for Anthony, we just have to change the driver. - non-PV Windows What do you mean

Re: [kvm-devel] [PATCH 3/3] Stop dropping so many RX packets in tap (v2)

2008-05-04 Thread Dor Laor
On Sun, 2008-05-04 at 15:21 -0500, Anthony Liguori wrote: Normally, tap always reads packets and simply lets the client drop them if it cannot receive them. For virtio-net, this results in massive packet loss and about an 80% performance loss in TCP throughput. This patch modifies

Re: [kvm-devel] [PATCH] Don't quit IO thread before all lvcpus stopped

2008-04-24 Thread Dor Laor
On Thu, 2008-04-24 at 15:47 +0300, Avi Kivity wrote: Dor Laor wrote: while investigating the revert of fix sci irq set when acpi timer I discovered the reason. Please also re-revert the original patch. Applied, but system_powerdown still doesn't work with the sci acpi timer fix

[kvm-devel] [PATCH] Don't quit IO thread before all lvcpus stopped

2008-04-23 Thread Dor Laor
the i/o thread stopped the timer. [This is what happened on the sci irq timer, now there is no need to revert it[ Signed-off-by: Dor Laor [EMAIL PROTECTED] --- qemu/qemu-kvm.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c index 50589a7

Re: [kvm-devel] [PATCH 1/1] QEMU/KVM: Support for PCI Passthrough

2008-04-13 Thread Dor Laor
On Thu, 2008-04-10 at 11:48 +0300, Amit Shah wrote: We can assign a device from the host machine to a guest. A new command-line option, -pcidevice is added. For example, to invoke it for an Ethernet device sitting at PCI bus:dev.fn 04:08.0 with host IRQ 18, use this: -pcidevice

Re: [kvm-devel] virtio with 2.6.25-rc8: problem with /dev/vda

2008-04-10 Thread Dor Laor
On Thu, 2008-04-10 at 14:14 +0900, Jun Koi wrote: On 4/10/08, Jorge Lucángeli Obes [EMAIL PROTECTED] wrote: On Thu, Apr 10, 2008 at 12:59 AM, Jun Koi [EMAIL PROTECTED] wrote: Now I succesfully installed 2.6.25-rc8, and virtio block device works well. But from inside my VM, how can I

Re: [kvm-devel] hugetlbfs

2008-04-09 Thread Dor Laor
On Wed, 2008-04-09 at 17:26 +0800, Yunfeng Zhao wrote: Hi, I meet problem to get hugetlbfs work on my test box. If i added --mem-path to qemu, the guest will always fail to boot with the error messages below printed on qemu console: ### ata0 master:

Re: [kvm-devel] performance tuning, problem with paravirtualized clock

2008-04-06 Thread Dor Laor
On Sun, 2008-04-06 at 21:56 +0200, Nikola Ciprich wrote: Hi, I spent some time trying to tune performance of KVM guest using kernel compilation as a kind of benchmark (I'm using virtual machines for compiling a lot, so it's good benchmark for me in general) Host machine: 2x quad core

Re: [kvm-devel] [kvm-ppc-devel] virtio-net working on PowerPC KVM

2008-03-31 Thread Dor Laor
On Mon, 2008-03-31 at 10:17 +0200, Alexander Graf wrote: On Mar 31, 2008, at 9:43 AM, Avi Kivity wrote: Alexander Graf wrote: I am experiencing 7-8ms ping latencies (native 0.1ms) on x86_64 as well, when pinging the virtual machine. Maybe it's not related to PowerPC? Is it supposed

Re: [kvm-devel] [Qemu-devel] [PATCH 3/6] virtio for QEMU

2008-03-30 Thread Dor Laor
On Sat, 2008-03-29 at 16:55 -0500, Anthony Liguori wrote: This patch introduces virtio support over PCI. virtio is a generic virtual IO framework for Linux first introduced in 2.6.23. Since 2.6.25, virtio has supported a PCI transport which this patch implements. Since the last time these

Re: [kvm-devel] idle load

2008-03-29 Thread Dor Laor
On Fri, 2008-03-28 at 23:41 +, Antoine Martin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, Guests seem to be doing a lot of timer related polling, is there any way to reduce that (which would reduce load on the host): It's weird we don't see any ioctl in the middle,

Re: [kvm-devel] Support for Sangoma A200 card using pci_add?

2008-03-26 Thread Dor Laor
On Tue, 2008-03-25 at 22:55 -0600, Randy Terbush wrote: I've been sifting through docs and code to try to figure out if I can actually expose this Sangoma card to a virtual container running Asterisk. You mean to connect a physical pci card to a virtual machine. This is what we call pci

Re: [kvm-devel] [RFC] QEMU/KVM: dedicated IO thread

2008-03-26 Thread Dor Laor
On Wed, 2008-03-26 at 15:14 -0300, Marcelo Tosatti wrote: On Wed, Mar 26, 2008 at 06:57:04PM +0200, Avi Kivity wrote: Marcelo Tosatti wrote: QEMU/KVM: separate thread for IO handling Move IO processing from vcpu0 to a dedicated thread. This removes load on vcpu0 by allowing

Re: [kvm-devel] KVM crashes when booting from Ubuntu ISO images.

2008-03-25 Thread Dor Laor
On Tue, 2008-03-25 at 12:35 +0200, Mohammed Gamal wrote: On Tue, Mar 25, 2008 at 11:58 AM, Alexey Eremenko [EMAIL PROTECTED] wrote: Is this caused by KVM not supporting real mode on Intel hosts, or is it caused by some other reason? Yes, it is correct. Ubuntu 7.04/7.10 won't

[kvm-devel] [PATCH] [RFC] Fix time drift of rtc clock + general support

2008-03-23 Thread Dor Laor
the current time drift on windows acpi hal guest. It works well for in-kernel irqchip and also w/o. Todo: 1. Implement it for the pit and eliminated the in-kernel pit. 2. Support smp (move acked_irq to CPUState) 3. Prepare several cleaner patches Signed-off-by: Dor Laor [EMAIL PROTECTED] --- libkvm

Re: [kvm-devel] question: HPET for multiple VMs

2008-03-23 Thread Dor Laor
On Mon, 2008-03-24 at 00:32 +0900, Ryota OZAKI wrote: Hi Avi, If you use the dyntick clock option (the default, IIRC), and a newer host kernel, then the kernel provides high-resolution timers, very likely using HPET internally or some other high resolution clock and event source.

Re: [kvm-devel] [Qemu-devel] [PATCH] [RFC] Fix time drift of rtc clock + general support

2008-03-23 Thread Dor Laor
On Sun, 2008-03-23 at 16:19 +, Paul Brook wrote: On Sunday 23 March 2008, Dor Laor wrote: --- a/qemu/hw/irq.c +++ b/qemu/hw/irq.c @@ -30,6 +30,8 @@ struct IRQState { int n; }; +uint32_t qemu_irq_acked[NR_IRQ_WORDS]; This is absolute rubbish. The whole point

Re: [kvm-devel] windows acpi time drift

2008-03-19 Thread Dor Laor
On Wed, 2008-03-19 at 17:39 +0200, Avi Kivity wrote: Anthony Liguori wrote: Avi Kivity wrote: The fourth is probably impossible from userspace (and very difficult in the kernel). What makes it impossible to do in userspace? If you managed a tsc_offset in userspace, you would of

Re: [kvm-devel] [PATCH] Fix sci irq set when acpi timer about to wrap

2008-03-18 Thread Dor Laor
On Sun, 2008-03-16 at 19:08 +0200, Avi Kivity wrote: Dor Laor wrote: From 498f162fc9d9fb897c756273c481101a44a220de Mon Sep 17 00:00:00 2001 From: Dor Laor [EMAIL PROTECTED] Date: Thu, 13 Mar 2008 00:11:41 +0200 Subject: [PATCH] Fix sci irq set when acpi timer about to wrap. The acpi

[kvm-devel] windows acpi time drift

2008-03-18 Thread Dor Laor
After some research of time drift while using window windows acpi hal I discovered it uses the ... rtc timer as a source clock. Not the apic, acpi nor the pit. The acpi timer is not used by the time keeping clock, the apic pit timer irqs are masked. In order to fix the time drift we need to fix

Re: [kvm-devel] windows acpi time drift

2008-03-18 Thread Dor Laor
On Wed, 2008-03-19 at 01:09 +0200, Dor Laor wrote: After some research of time drift while using window windows acpi hal I discovered it uses the ... rtc timer as a source clock. Not the apic, acpi nor the pit. The acpi timer is not used by the time keeping clock, the apic pit timer irqs

Re: [kvm-devel] no mouse

2008-03-12 Thread Dor Laor
On Wed, 2008-03-12 at 05:10 +0100, aGaTHoS wrote: CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ kvm version: 62 kernel: 2.6.23-hardened-r7 (with gentoo standard and hardened patches, it is anyway compiled without ssp and pie) arch: x86_64 guest OS: various, windows XP and various

Re: [kvm-devel] KVM Test result, kernel a16664b.., userspace3017d05.. one new issue

2008-03-12 Thread Dor Laor
On Wed, 2008-03-12 at 10:41 +0800, Yunfeng Zhao wrote: Chris Wedgwood wrote: On Mon, Mar 10, 2008 at 05:27:32PM +0800, Yunfeng Zhao wrote: One new issue: 1. booting smp windows guests has 30% chance of hang

Re: [kvm-devel] how increase performance of network io in kvm

2008-03-12 Thread Dor Laor
On Tue, 2008-03-11 at 15:30 -0700, Dhirendra Pal Singh wrote: I tried e1000 and it says qemu: Unsupported NIC: e1000 :( Did I miss something.. ? I downloaded the latest code base for qemu, and I see the following lines in qemu-doc.texi * @code{i82551},

Re: [kvm-devel] [PATCH][QEMU] Use a separate device for in-kernel PIT

2008-03-12 Thread Dor Laor
On Wed, 2008-03-12 at 12:38 -0500, Anthony Liguori wrote: Part of the feedback we received from Fabrice about the KVM patches for QEMU is that we should create a separate device for the in-kernel APIC to avoid having lots of if (kvm_enabled()) within the APIC code that were difficult to

[kvm-devel] [PATCH] Fix sci irq set when acpi timer about to wrap

2008-03-12 Thread Dor Laor
From 498f162fc9d9fb897c756273c481101a44a220de Mon Sep 17 00:00:00 2001 From: Dor Laor [EMAIL PROTECTED] Date: Thu, 13 Mar 2008 00:11:41 +0200 Subject: [PATCH] Fix sci irq set when acpi timer about to wrap. The acpi timer should generate sci irq when enabled and when bit 23 of the timer counter

Re: [kvm-devel] how increase performance of network io in kvm

2008-03-10 Thread Dor Laor
On Mon, 2008-03-10 at 12:13 -0700, Jorge Lucángeli Obes wrote: On Mon, Mar 10, 2008 at 11:58 AM, Dhirendra Pal Singh [EMAIL PROTECTED] wrote: Hi Guys, I am trying to evaluate, kvm at my work for virtual support in our product.. I had setup up a windows guest, in my ubuntu host, on

Re: [kvm-devel] [PATCH 0/6] In kernel PIT patch

2008-03-06 Thread Dor Laor
On Thu, 2008-03-06 at 14:56 -0600, Anthony Liguori wrote: Avi Kivity wrote: The thing I'm trying to get at is a quantitative statement about why moving the pit into the kernel is the right thing. I'll try to give the patches a try myself in the next couple of days. I don't think

Re: [kvm-devel] KVM and WinPE failure

2008-03-06 Thread Dor Laor
On Thu, 2008-03-06 at 14:17 -0500, [EMAIL PROTECTED] wrote: Greetings, I'm running vanilla-sources-2.6.24.3 with KVM-63 on a Thinkpad T61p running Gentoo Linux. I'm having some trouble with a corporate rollout of WinXP into a KVM image. My company uses WinPE in order to do the rollout,

Re: [kvm-devel] [PATCH 0/6] In kernel PIT patch

2008-03-05 Thread Dor Laor
On Tue, 2008-03-04 at 18:50 -0600, Anthony Liguori wrote: Dor Laor wrote: On Tue, 2008-03-04 at 09:52 -0600, Anthony Liguori wrote: Yang, Sheng wrote: Hi Here is the last in-kernel PIT patch for KVM. The mainly change from last version is the supporting to save/restore

Re: [kvm-devel] [RFC] Notifier for Externally Mapped Memory (EMM)

2008-03-05 Thread Dor Laor
On Wed, 2008-03-05 at 03:47 -0600, Robin Holt wrote: On Wed, Mar 05, 2008 at 07:09:55AM +0200, Avi Kivity wrote: Isn't that out of the question for .25? I keep hearing this mantra. What is so compelling about the .25 release? When seems to be more important than what. While I understand

Re: [kvm-devel] [Lguest] networking in lguest: strange error: lguest: Guest moved used index from 6 to 256

2008-03-05 Thread Dor Laor
On Wed, 2008-03-05 at 22:06 +1100, Rusty Russell wrote: On Tuesday 04 March 2008 03:05:16 octane indice wrote: Hello I have some difficulty to use network inside lguest. I use a slackware 12 for guest and host with a 2.6.24 kernel. I boot lguest like that: # tunctl # ifconfig

Re: [kvm-devel] [PATCH 0/6] In kernel PIT patch

2008-03-05 Thread Dor Laor
On Wed, 2008-03-05 at 17:05 -0600, Anthony Liguori wrote: Dor Laor wrote: On Wed, 2008-03-05 at 19:30 +0200, Avi Kivity wrote: Playing a movie is better than any benchmark; it reflects actual user experience in a real and important use case. Benchmarks are substitutes for real

Re: [kvm-devel] [Lguest] networking in lguest: strange error: lguest: Guest moved used index from 6 to 256

2008-03-05 Thread Dor Laor
On Wed, 2008-03-05 at 17:10 -0600, Anthony Liguori wrote: Dor Laor wrote: Seems to work reliably with kvm, should do the same trick for lguest. You can download it from git://kvm.qumranet.com/home/dor/src/kvm-guest-drivers-linux Anthony, you can update your mercurial repository

Re: [kvm-devel] [PATCH] Virtio network device migration support

2008-03-04 Thread Dor Laor
On Mon, 2008-03-03 at 09:27 -0600, Anthony Liguori wrote: Hi Dor, Dor Laor wrote: void *virtio_net_init(PCIBus *bus, NICInfo *nd, int devfn) { VirtIONet *n; +const char *info_str = virtio-net; -n = (VirtIONet *)virtio_init_pci(bus, virtio-net, 6900, 0x1000, +n

[kvm-devel] [PATCH] Check device status in tx timer

2008-03-04 Thread Dor Laor
repository: /home/dor/src/merge/kvm branch: trunk commit acdb6d2aa7332179eead306ead17494ae23edbd6 Author: Dor Laor [EMAIL PROTECTED] Date: Tue Mar 4 08:16:06 2008 -0500 Check device status in tx timer. The device can be down when the timer pops. If it is down it will cause

[kvm-devel] [PATCH] Add virtio_net_id for evenry instance

2008-03-04 Thread Dor Laor
repository: /home/dor/src/merge/kvm branch: trunk commit 27541e5166e4bb6d053b77f7fd7b3ed75db58138 Author: Dor Laor [EMAIL PROTECTED] Date: Tue Mar 4 08:59:03 2008 -0500 Add virtio_net_id for every instance, as suggested by Anthony Liguori Signed-off-by: Dor Laor [EMAIL PROTECTED

[kvm-devel] [PATCH] Fix virtio migration when the device is down If the guest did not initalize the pfn, don't use it

2008-03-04 Thread Dor Laor
repository: /home/dor/src/merge/kvm branch: trunk commit db89e8403773a68d4c0ac3d6813f19ec83cb7011 Author: Dor Laor [EMAIL PROTECTED] Date: Tue Mar 4 08:14:37 2008 -0500 Fix virtio migration when the device is down If the guest did not initalize the pfn, don't use it. Signed-off

[kvm-devel] [PATCH] Use specific avail/used ring structures

2008-03-04 Thread Dor Laor
repository: /home/dor/src/merge/kvm branch: trunk commit bf1e6da21722a4699ea3739e587f282b9a5db418 Author: Dor Laor [EMAIL PROTECTED] Date: Tue Mar 4 08:57:52 2008 -0500 Use specific avail/used ring structures This is more accurate than using page_size, as suggested by Anthony

Re: [kvm-devel] [PATCH] Check device status in tx timer

2008-03-04 Thread Dor Laor
On Tue, 2008-03-04 at 09:42 -0600, Anthony Liguori wrote: diff --git a/qemu/hw/virtio-net.c b/qemu/hw/virtio-net.c index 612cf6b..a05eafb 100644 --- a/qemu/hw/virtio-net.c +++ b/qemu/hw/virtio-net.c @@ -280,6 +280,10 @@ static void virtio_net_tx_timer(void *opaque) { VirtIONet

Re: [kvm-devel] KVM-61/62 build fails on SLES 10

2008-03-04 Thread Dor Laor
Hello Sorry for my intervention into your communication, but are you sure, when you want to use virtio, you must have 2.6.25 kernel on both - guest and host system? I test this case right now, and I have running 2.6.25-rc3 only on guest system with kvm-62. It's enough running the

Re: [kvm-devel] [PATCH 0/6] In kernel PIT patch

2008-03-04 Thread Dor Laor
On Tue, 2008-03-04 at 09:52 -0600, Anthony Liguori wrote: Yang, Sheng wrote: Hi Here is the last in-kernel PIT patch for KVM. The mainly change from last version is the supporting to save/restore. I also tested live migration. The other modifies including some date structure changed

[kvm-devel] [PATCH] Virtio network device migration support

2008-03-03 Thread Dor Laor
rather copy the entire ring (3 pages) when saving state than touching the dirty bits every time in fast path. Besides that the virtio device, pci bus state and the network device states are saved. Signed-off-by: Dor Laor [EMAIL PROTECTED] diff --git a/qemu/hw/virtio-net.c b/qemu/hw/virtio

Re: [kvm-devel] Booting from Virtio block device

2008-02-28 Thread Dor Laor
On Thu, 2008-02-28 at 00:22 -0500, Haydn Solomon wrote: First of all, thank you for all the great work on this project. I am trying to boot a linux guest from virtio block device. I followed the howto on the wiki but guest is not able to locate root device. Only thing I am doing

[kvm-devel] [PATCH] Change the e1000 mmio addr space according to spec

2008-02-28 Thread Dor Laor
repository: /home/build/src/kvm branch: trunk commit cd5edbab7d647b81cbbf60d530068f2916658753 Author: Dor Laor [EMAIL PROTECTED] Date: Thu Feb 28 11:01:41 2008 +0200 Change the e1000 mmio addr space according to spec. According to the Intel 82540EM manual, the mmio space

Re: [kvm-devel] How to setup public bridge in KVM?

2008-02-27 Thread Dor Laor
On Wed, 2008-02-27 at 18:08 +0800, Zhao Forrest wrote: Hi experts, I tried to setup VM network by following the instructions at http://kvm.qumranet.com/kvmwiki/Networking. In particular I tried to setup public bridge, so I need /usr/sbin/tunctl. However I could not find tunctl on my

Re: [kvm-devel] [PATCH] QEMU support for virtio balloon driver

2008-02-25 Thread Dor Laor
On Mon, 2008-02-25 at 13:47 -0600, Anthony Liguori wrote: This patch adds support to QEMU for Rusty's recently introduce virtio balloon driver. The user-facing portions of this are the introduction of a balloon and info balloon command in the monitor. The patch looks good. Might be a good

Re: [kvm-devel] KVM Testing Result for KVM-61

2008-02-20 Thread Dor Laor
On Wed, 2008-02-20 at 11:41 +0200, Izik Eidus wrote: On Wed, 2008-02-20 at 15:09 +0800, Zhao, Yunfeng wrote: Hi,All This is testing result for KVM-61. No new issue has been found in the testing. Five old issues: 1. Fails to save/restore guests Save/restore may cause host to

Re: [kvm-devel] Query on migration

2008-02-15 Thread Dor Laor
On Fri, 2008-02-15 at 23:42 +0530, Balaji Rao wrote: Hello all, When going through orpofile code, I noticed that boot_cpu_data was used to determine CPU vendor, family etc. Will this be updated on migration to a different Machine say, from Intel to AMD ? If not, wouldn't it cause

Re: [kvm-devel] stable distro for kvm?

2008-02-14 Thread Dor Laor
On Thu, 2008-02-14 at 12:08 -0500, Andrey Dmitriev wrote: If I want to stick to debian, would the best way to do this be to just download kvm60 source, compile the module and load it in, or does kernel still require upgrading (I think latest on etch is .18 not .20) You can stay with debain,

Re: [kvm-devel] How-to use paravirt layer for network and block devices

2008-01-29 Thread Dor Laor
On Tue, 2008-01-29 at 10:50 -0700, Cameron Macdonell wrote: Hi, What are the command-line options necessary to get the guest devices to use the paravirt layer? For network you use '-net nic,model=virtio', I hope to write a wiki page for it tomorrow. Thanks, Cam

Re: [kvm-devel] [PATCH] virtio_net tx performance fix

2008-01-28 Thread Dor Laor
also tested tcp/udp (udp tx is only 550Mbps with the patch, w/o it's only 220Mbps) So this patch is pretty much killing performance for netperf. Did you have hrtimer configured on the host? Dor Laor wrote: There was a problem with the location of the notify call in add_buff function

[kvm-devel] [PATCH] virtio_net tx performance fix

2008-01-27 Thread Dor Laor
From f582caf612b446e42f1e80d5ef12c5b7322efd03 Mon Sep 17 00:00:00 2001 From: Dor Laor [EMAIL PROTECTED] Date: Mon, 28 Jan 2008 02:09:48 +0200 Subject: [PATCH] virtio_net tx performance fix There was a problem with the location of the notify call in add_buff function: When VRING_USED_F_NO_NOTIFY

Re: [kvm-devel] [PATCH] QEMU support for virtio balloon driver

2008-01-25 Thread Dor Laor
On Thu, 2008-01-24 at 16:29 -0600, Anthony Liguori wrote: Anthony Liguori wrote: This patch adds support to QEMU for Rusty's recently introduce virtio balloon driver. The user-facing portions of this are the introduction of a balloon and info balloon command in the monitor. I

Re: [kvm-devel] Benchmarking warning

2008-01-25 Thread Dor Laor
On Fri, 2008-01-25 at 15:20 -0700, Cam Macdonell wrote: Hi, I get the following warning in the kernel messages: kvm: emulating preempt notifiers; do not benchmark on this machine Is this an accurate warning, should the machine not be used for It's accurate. benchmarking KVM? or does

Re: [kvm-devel] VT disabled on Sony Vaio...

2008-01-22 Thread Dor Laor
On Tue, 2008-01-22 at 17:59 +0200, Izik Eidus wrote: Andrea Gelmini wrote: Hi all, I've got a Vaio VGN-SZ1VP_C. As you can read here¹, Sony disabled VT (and AHCI) by BIOS. So, when I try to load KVM module I've got: kvm: disabled by bios Is it possible to ignore BIOS settings

Re: [kvm-devel] [PATCH] fix reading from character devices

2008-01-21 Thread Dor Laor
On Mon, 2008-01-21 at 12:13 +0200, Avi Kivity wrote: Jan Kiszka wrote: Hi Avi, commit kvm: qemu: consume all pending I/O in I/O loop (8ab8bb09f1115b9bf733f885cc92b6c63d83f420) broke reading data bursts from serial devices (and maybe from other character devices as well) by guests.

Re: [kvm-devel] GFXboot, Ubuntu and kvm git

2008-01-17 Thread Dor Laor
On Thu, 2008-01-17 at 18:20 +0100, Soren Hansen wrote: Hi! I'm having an issue with GFXboot in Ubuntu. If I try to boot one of our recent iso images, e.g. http://cdimage.ubuntu.com/ubuntu-server/daily/current/hardy-server-amd64.iso with a simple kvm -cdrom hardy-server-amd64 using

Re: [kvm-devel] [PATCH] KVM simplified virtio balloon driver

2008-01-17 Thread Dor Laor
On Thu, 2008-01-17 at 07:56 -0600, Anthony Liguori wrote: Dor Laor wrote: On Thu, 2008-01-17 at 11:25 +0100, Martin Schwidefsky wrote: Another idea: Martin added an oom notifier to the cmm driver. Before the oom-killer kicks in cmm will try to free 256 pages. I think your virtio

Re: [kvm-devel] [PATCH] KVM virtio balloon driver

2008-01-16 Thread Dor Laor
On Tue, 2008-01-15 at 17:01 -0200, Marcelo Tosatti wrote: OK, thats simpler. How about this: It's sure is simpler :) [PATCH] Virtio balloon driver Add a balloon driver for KVM, host-guest communication is performed via virtio. Signed-off-by: Marcelo Tosatti [EMAIL PROTECTED] [snip]

Re: [kvm-devel] [PATCH] kvm balloon guest driver (v2)

2008-01-10 Thread Dor Laor
On Thu, 2008-01-10 at 21:27 +0900, Akio Takebe wrote: Hi, Marcelo +static int kvm_balloon_inflate(struct virtballoon *v, int32_t npages) +{ + LIST_HEAD(tmp_list); + struct page *page, *tmp; + struct balloon_buf *buf; + u32 *pfn; + int allocated = 0; + int i, r = -ENOMEM; +

Re: [kvm-devel] [Qemu-devel] [PATCH] e1000 emulation code

2008-01-10 Thread Dor Laor
andrzej zaborowski wrote: Hi, On 09/01/2008, Dor Laor [EMAIL PROTECTED] wrote: It which supports TCP/UDP and IP transmit checksum, as well as TSO. It has been tested with Linux (2.6.18|22|23|24)++ and Windows XP (using the driver supplied at the intel download site). Windows Vista

[kvm-devel] [PATCH] Increase the tx queue to 512 descriptors to fix performance problem.

2008-01-09 Thread Dor Laor
(its not the only problem). Signed-off-by: Dor Laor [EMAIL PROTECTED] --- qemu/hw/virtio-net.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu/hw/virtio-net.c b/qemu/hw/virtio-net.c index 777fe2c..3d07b65 100644 --- a/qemu/hw/virtio-net.c +++ b/qemu/hw/virtio-net.c

Re: [kvm-devel] [PATCH] Increase the tx queue to 512 descriptors to fix performance problem.

2008-01-09 Thread Dor Laor
On Wed, 2008-01-09 at 08:29 -0600, Anthony Liguori wrote: Dor Laor wrote: Now that we have a host timer based tx wakeup it waits for 64 packets or timeout before processing them. This might cause the guest to run out of tx buffers while the host holds them up. There's a proper

Re: [kvm-devel] kvm with usb slow

2008-01-06 Thread Dor Laor
Norbert Preining wrote: Hi all, (please Cc, thanks) I am running kernel 2.6.24-rc6 and kvm-56 (or was it 55) and as soon as I plug an usb device with usb enabled it is getting terrible slow. I have searched a bit and it seems to be related to async i/o not being implemented. Can you please

Re: [kvm-devel] [PATCH] KVM: emulator: Only allow VMCALL/VMMCALL trapped by #UD

2008-01-05 Thread Dor Laor
Dong, Eddie wrote: Anthony Liguori wrote: Yang, Sheng wrote: From 9743b5299bae1779c2b893cbeb86122bcccb9b2d Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Wed, 2 Jan 2008 14:49:22 +0800 Subject: [PATCH] KVM: emulator: Only allow VMCALL/VMMCALL trapped by #UD When

Re: [kvm-devel] [Virtio-for-kvm] [PATCH 7/7] userspace virtio

2008-01-02 Thread Dor Laor
Avi Kivity wrote: Anthony Liguori wrote: I think we should hold off on this sort of patch at first. I know it improves performance, but it's very hack-ish. I have a similar patch[1] that improves performance more but is even more hack-ish. I think we have to approach this by not special

Re: [kvm-devel] [PATCH] [PATCH 1/3] virtio infrastructure

2007-12-31 Thread Dor Laor
Anthony Liguori wrote: Dor Laor wrote: Anthony Liguori wrote: Hi Dor, I can't tell if you made any changes to this series. I have to look back to my notes, but I believe it would be okay to pull this series into KVM. I still need to spend some time updating the patchset to be more

[kvm-devel] [PATCH 4/8][RE-SEND][KVM-VIRTIO] Add NIC vendor option to kvm python script

2007-12-30 Thread Dor . Laor
From: Dor Laor [EMAIL PROTECTED] It allows picking other NIC vendors than rtl8139. Use --nictype=xxx, the ddefault is rtl8139. Signed-off-by: Dor Laor [EMAIL PROTECTED] --- kvm |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/kvm b/kvm index 0374fbc..2a7dc85

[kvm-devel] [PATCH 3/8][RE-SEND][KVM-VIRTIO] virtio block device

2007-12-30 Thread Dor . Laor
From: Dor Laor [EMAIL PROTECTED] This patch implements the backend support for the virtio block device. It's designed to support in-order queueing of a virtually unlimited size so it will be able to perform better than SCSI. Besides performance, the virtio block interface passes through guest

[kvm-devel] [PATCH 2/8][RE-SEND][KVM-VIRTIO] virtio network device

2007-12-30 Thread Dor . Laor
From: Dor Laor [EMAIL PROTECTED] This patch implements the backend support for the virtio network device. The device is optimized for virtualized environments by limiting the number of guest=host transitions per-packet. In the best case, the number of transitions per-packet is 1. With some

[kvm-devel] [PATCH 0/8][RE-SEND][KVM-VIRTIO] virtio userspace V2

2007-12-30 Thread Dor . Laor
This patchset updates kvm repository with Anthony's virtio implementation along with rx performance improvements and guest reset handling. The original code was sent to qemu devel list 2 weeks ago. V2 fixes Avi's comments for enabling -net user option (although with old performance). It

[kvm-devel] [PATCH 5/8][RE-SEND][KVM-VIRTIO] Check for device status on tx.

2007-12-30 Thread Dor . Laor
From: Dor Laor [EMAIL PROTECTED] Allow tx only if VIRTIO_CONFIG_S_DRIVER_OK. It can prevent an smp race of tx and driver unload. Signed-off-by: Dor Laor [EMAIL PROTECTED] --- qemu/hw/virtio-net.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/qemu/hw/virtio-net.c b

[kvm-devel] [PATCH 1/8][RE-SEND][KVM-VIRTIO] virtio infrastructure

2007-12-30 Thread Dor . Laor
From: Dor Laor [EMAIL PROTECTED] This patch implements the basic infrastructure for virtio devices. These devices are exposed to the guest as real PCI devices. The PCI vendor/device IDs have been donated by Qumranet and the subsystem IDs are used to distinguish the virtio device itself. Virtio

[kvm-devel] [PATCH 8/8][RE-SEND][KVM-VIRTIO] Network rx performance improvment

2007-12-30 Thread Dor . Laor
From: Dor Laor [EMAIL PROTECTED] This patch prevents qemu handlers from reading the tap and instead it selects the tap descriptors for virtio devices. This eliminates copies and also batch guest notifications (interrupts). Using this patch the rx performance reaches 800Mbps. -net user option

[kvm-devel] [PATCH 7/8][RE-SEND][KVM-VIRTIO] Use common vendor/device ids for block driver

2007-12-30 Thread Dor . Laor
From: Dor Laor [EMAIL PROTECTED] Stop using the old, unregsitered 0x5002, 0x2258 pair and use Qumranet's donated 0x1AF4,0x10XX pairs. Signed-off-by: Dor Laor [EMAIL PROTECTED] --- qemu/hw/pc.c |2 +- qemu/hw/virtio-blk.c |2 +- 2 files changed, 2 insertions(+), 2 deletions

[kvm-devel] [PATCH 6/8][RE-SEND][KVM-VIRTIO] Add virtio_reset callback

2007-12-30 Thread Dor . Laor
From: Dor Laor [EMAIL PROTECTED] Call it when the driver sets the pfn to zero and also on qemu_reset notifier list. This fixes crashes when virtio driver unloads or when rebooting the guest. Signed-off-by: Dor Laor [EMAIL PROTECTED] --- qemu/hw/virtio.c | 24 +--- 1 files

[kvm-devel] [PATCH 0/13][RE-SEND][KVM-VIRTIO] virtio kernelspace V1

2007-12-30 Thread Dor . Laor
This patchset updates kvm repository with Rusty's/Anthony's virtio implementation along with already sent tx performance bug fix and new module reload fixes. The (new) patches were accepted by Rusty, this is a resend to fix email space mangling software. This code together with the userspace

[kvm-devel] [PATCH 4/13] [KVM-virtio][RESEND] Put the virtio under the virtualization menu

2007-12-30 Thread Dor . Laor
From: Anthony Liguori [EMAIL PROTECTED] This patch moves virtio under the virtualization menu and changes virtio devices to not claim to only be for lguest. Signed-off-by: Anthony Liguori [EMAIL PROTECTED] Signed-off-by: Rusty Russell [EMAIL PROTECTED] --- arch/x86/kvm/Kconfig |1 +

[kvm-devel] [PATCH 8/13] [KVM-virtio][RESEND] add debug/performance stats to network driver

2007-12-30 Thread Dor . Laor
From: Anthony Liguori [EMAIL PROTECTED] ifconfig down or remove the module to get the statistics dump. --- drivers/net/virtio_net.c | 120 +++--- 1 files changed, 103 insertions(+), 17 deletions(-) diff --git a/drivers/net/virtio_net.c

[kvm-devel] [PATCH 11/13] [KVM-virtio][RESEND] Parametrize the napi_weight for virtio receive queue

2007-12-30 Thread Dor . Laor
From: Dor Laor [EMAIL PROTECTED] Signed-off-by: Dor Laor [EMAIL PROTECTED] --- drivers/net/virtio_net.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 0403d65..d35dbe7 100644 --- a/drivers/net/virtio_net.c

[kvm-devel] [PATCH 12/13] [KVM-virtio][RESEND] Handle module unload

2007-12-30 Thread Dor . Laor
From: Dor Laor [EMAIL PROTECTED] Add the device release function. Signed-off-by: Dor Laor [EMAIL PROTECTED] --- drivers/virtio/virtio.c |7 +++ drivers/virtio/virtio_pci.c |7 +++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/drivers/virtio/virtio.c b

[kvm-devel] [PATCH 2/13] [KVM-virtio][RESEND] An entropy device, as suggested by hpa.

2007-12-30 Thread Dor . Laor
From: Rusty Russell [EMAIL PROTECTED] Signed-off-by: Rusty Russell [EMAIL PROTECTED] --- Documentation/lguest/lguest.c | 53 +++ drivers/char/hw_random/Kconfig | 10 +++ drivers/char/hw_random/Makefile |1 + drivers/char/hw_random/virtio-rng.c | 124

[kvm-devel] [PATCH 6/13] [KVM-virtio][RESEND] use an hrtimer for tx coalescing.

2007-12-30 Thread Dor . Laor
From: Anthony Liguori [EMAIL PROTECTED] Not sure why hrtimer's cb_mode only exists with CONFIG_HIGH_RES_TIMERS; that seems like a bug to me. Signed-off-by: Rusty Russell [EMAIL PROTECTED] --- drivers/net/virtio_net.c | 41 - 1 files changed, 40

[kvm-devel] [PATCH 3/13] [KVM-virtio][RESEND] Export vring functions for modules to use

2007-12-30 Thread Dor . Laor
From: Anthony Liguori [EMAIL PROTECTED] This is needed for the virtio PCI device to be compiled as a module. Signed-off-by: Anthony Liguori [EMAIL PROTECTED] Signed-off-by: Rusty Russell [EMAIL PROTECTED] --- drivers/virtio/virtio_ring.c |6 ++ 1 files changed, 6 insertions(+), 0

[kvm-devel] [PATCH 10/13] [KVM-virtio][RESEND] Don't arm tx hrtimer with a constant 500us each transmit

2007-12-30 Thread Dor . Laor
From: Dor Laor [EMAIL PROTECTED] The current start_xmit sets 500us hrtimer to kick the host. The problem is that if another xmit happens before the timer was fired then the first xmit will have to wait additional 500us. This patch does not re-arm the timer if there is existing one

[kvm-devel] [PATCH 1/13] [KVM-virtio][RESEND] virtio: simplify config mechanism.

2007-12-30 Thread Dor . Laor
From: Anthony Liguori [EMAIL PROTECTED] Previously we used a type/len pair within the config space, but this seems overkill. We now simply define a structure which represents the layout in the config space: the config space can now only be extended at the end. The main driver-visible changes:

[kvm-devel] [PATCH 13/13] [KVM-virtio][RESEND] Update all status fields on driver unload

2007-12-30 Thread Dor . Laor
From: Dor Laor [EMAIL PROTECTED] Both VIRTIO_CONFIG_S_DRIVER and VIRTIO_CONFIG_S_DRIVER_OK should be cleaned upon driver unload. Signed-off-by: Dor Laor [EMAIL PROTECTED] --- drivers/virtio/virtio.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/virtio

[kvm-devel] [PATCH 7/13] [KVM-virtio][RESEND] free transmit skbs when notified, not on next xmit.

2007-12-30 Thread Dor . Laor
From: Anthony Liguori [EMAIL PROTECTED] This fixes a potential dangling xmit problem. We also suppress refill interrupts until we need them. Signed-off-by: Rusty Russell [EMAIL PROTECTED] --- drivers/net/virtio_net.c | 69 - 1 files changed, 49

[kvm-devel] [PATCH 5/13] [KVM-virtio][RESEND] PCI device

2007-12-30 Thread Dor . Laor
From: Anthony Liguori [EMAIL PROTECTED] This is a PCI device that implements a transport for virtio. It allows virtio devices to be used by QEMU based VMMs like KVM or Xen. Signed-off-by: Anthony Liguori [EMAIL PROTECTED] Signed-off-by: Rusty Russell [EMAIL PROTECTED] ---

[kvm-devel] [PATCH 9/13] [KVM-virtio][RESEND] Fix vring_init/vring_size to take unsigned long

2007-12-30 Thread Dor . Laor
From: Anthony Liguori [EMAIL PROTECTED] Using unsigned int resulted in silent truncation of the upper 32-bit on x86_64 resulting in an OOPS since the ring was being initialized wrong. Please reconsider my previous patch to just use PAGE_ALIGN(). Open coding this sort of stuff, no matter how

Re: [kvm-devel] [PATCH] [PATCH 1/3] virtio infrastructure

2007-12-30 Thread Dor Laor
. There is also work in progress to move the balloon driver over virtio. Thanks, Dor. Regards, Anthony Liguori [EMAIL PROTECTED] wrote: From: Dor Laor [EMAIL PROTECTED] This patch implements the basic infrastructure for virtio devices. These devices are exposed to the guest as real PCI devices

Re: [kvm-devel] booting XP

2007-12-29 Thread Dor Laor
Jerry Geis wrote: Seems as though running with the -no-acpi command will not boot XP. once I remove it XP boots fine. It's probably because you have ACPI HAL in windows, it required the acpi to be set in qemu. It also kills performance on kvm versions 58. You can approve this by running

Re: [kvm-devel] virtio_net and SMP guests

2007-12-23 Thread Dor Laor
Rusty Russell wrote: On Friday 14 December 2007 23:12:05 Christian Borntraeger wrote: Rusty, Anthony, Dor, I need your brain power :-) On smp guests I have seen a problem with virtio (the version in curent Avi's git) which do not occur on single processor guests: kernel BUG at

[kvm-devel] [Virtio-for-kvm] [PATCH 0/7] userspace virtio

2007-12-21 Thread Dor Laor
This patchset updates kvm repository with Anthony's virtio implementation along with rx performance improvements and guest reset handling. The original code was sent to qemu devel list 2 weeks ago. It contains support for network block devices. Using the performance improvement I was able to do

[kvm-devel] [Virtio-for-kvm] [PATCH 6/7] userspace virtio

2007-12-21 Thread Dor Laor
From 1b493ba192cd677d9feb886eb494cb266a8604e2 Mon Sep 17 00:00:00 2001 From: Dor Laor [EMAIL PROTECTED] Date: Thu, 20 Dec 2007 10:48:32 +0200 Subject: [PATCH] [VIRTIO] Add virtio_reset callback Call it when the driver sets the pfn to zero and also on qemu_reset notifier list. This fixes crashes

  1   2   3   4   >