[PATCH] kvm: external module: do not hardcode tsc_khz

2009-03-25 Thread Avi Kivity
From: Marcelo Tosatti mtosa...@redhat.com external module compat hard codes tsc_khz as 200 if KERNEL_VERSION (2,6,23). This breaks kvmclock on hosts with different frequency. While tsc_khz was only exported on 2.6.23, the majority of relevant older v2.6 based distros seem to have it

[PATCH] kvm: extboot: Update number of HDs reported by BIOS

2009-03-25 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com The Vista boot loaded expects the bios to report a correct count of the bootable disks; and extboot disks are bootable. This fixes Vista boot from virtio-blk issue. Signed-off-by: Gleb Natapov g...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff

[PATCH] KVM: VMX: Zero the vpid module parameter if vpid is not supported

2009-03-25 Thread Avi Kivity
From: Avi Kivity a...@redhat.com This allows reading back how the hardware is configured. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 47b94ae..8b1b9b8 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -1202,6 +1202,9 @@ static

[PATCH] KVM: Fix interrupt unhalting a vcpu when it shouldn't

2009-03-25 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com kvm_vcpu_block() unhalts vpu on an interrupt/timer without checking if interrupt window is actually opened. Signed-off-by: Gleb Natapov g...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c

Re: [PATCH 1/1] KVM: Correct wrong vmcs reading

2009-03-25 Thread Avi Kivity
Sheng Yang wrote: Some 64bit reading should be natrual wide reading... Applied, thanks. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info

Re: KVM on Via Nano (Isaiah) CPUs? Virus checked

2009-03-25 Thread Andreas Tanz
Avi Kivity wrote: Will talk to the specification and come up with further tests. Please printk() vmcs_readl(GUEST_RFLAGS) (where you printk kvm_rip_read()). vmx.c: 2637 static int handle_exception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) 2638 { ... 2687 error_code = 0;

[PATCH] KVM: IA64: enable external interrupt in vmm

2009-03-25 Thread Zhang, Yang
From 2cf75eff171ef823b3b17c945504d0233a6bd427 Mon Sep 17 00:00:00 2001 From: Yang Zhang yang.zh...@intel.com Date: Mon, 23 Mar 2009 03:31:04 -0400 Subject: [PATCH] KVM: IA64: enable external interrupt in vmm In the previous version, the interrupt bit is cleared when in the vmm. This patch opens

Re: Split kvm source tarballs

2009-03-25 Thread Anthony Liguori
Avi Kivity wrote: Anthony Liguori wrote: Hrm, I notice that for qemu-kvm, you basically just pulled out the module source. That's step 1. What do you think about going a step further and building a proper qemu repository? Step 2. I have scripts that do that and will merge with

kvm-guest-drivers-linux-1 virtio_net crash with 2.6.18.8 kernel

2009-03-25 Thread Takeshi Sone
Hello, I built kvm-guest-drivers-linux-1 on vanilla 2.6.18.8 kernel. virtio_blk worked fine. However virtio_net crashes right after enabling the device with ifconfig. This happens when the net device is connected to host tap. It works fine with -net user. Host is kvm-84 on 2.6.28 (Ubuntu

Re: kvm: qemu: stop/start cpus before/after devices

2009-03-25 Thread Marcelo Tosatti
On Wed, Mar 25, 2009 at 01:45:52PM +0200, Avi Kivity wrote: Marcelo Tosatti wrote: From: Yaniv Kamay ya...@qumranet.com Stop cpus before devices when stopping the VM, start cpus after devices when starting VM. Why is this needed? A vcpu could access a stopped device otherwise. -- To

Re: kvm: qemu: stop/start cpus before/after devices

2009-03-25 Thread Marcelo Tosatti
On Wed, Mar 25, 2009 at 11:26:19AM -0300, Marcelo Tosatti wrote: On Wed, Mar 25, 2009 at 01:45:52PM +0200, Avi Kivity wrote: Marcelo Tosatti wrote: From: Yaniv Kamay ya...@qumranet.com Stop cpus before devices when stopping the VM, start cpus after devices when starting VM.

Re: kvm: qemu: stop/start cpus before/after devices

2009-03-25 Thread Avi Kivity
Marcelo Tosatti wrote: On Wed, Mar 25, 2009 at 11:26:19AM -0300, Marcelo Tosatti wrote: On Wed, Mar 25, 2009 at 01:45:52PM +0200, Avi Kivity wrote: Marcelo Tosatti wrote: From: Yaniv Kamay ya...@qumranet.com Stop cpus before devices when stopping the VM, start cpus after

KVM Port

2009-03-25 Thread kvm port
Hi KVM Gurus, We have a EVB with a fpga based RISC processor with VT support. As a proof of concept i have to port KVM onto it. we have run linux as of now. can anyof u help with how should i begin -thanks n regards kvport bunch -- To unsubscribe from this list: send the line unsubscribe kvm in

[PATCH] compute checksum for roms bigger than a segment

2009-03-25 Thread Glauber Costa
Some option roms (e1000 provided by gpxe project as an example) are bigger than a segment. The current algorithm to compute the checksum fails in such case. To proper compute the checksum, this patch deals with the possibility of the rom's size crossing a segment border. We don't need to worry

[PATCH] kvm-autotest: write relative path in html report

2009-03-25 Thread Ryan Harper
When generating an html report from make_html_report.py, one needs to supply the full path to the results directory. This value ends up being embedded in the output which breaks relocating the results dir to a different path. This patch adds a new flag that supresses the full path value when

IO on guest is 20 times slower than host

2009-03-25 Thread Kurt Yoder
Hello list, I'm puzzled as to why my KVM guest has IO that is 20 times slower than the KVM host: m...@guest:~$ dd if=/dev/zero of=/tmp/bigfile count=10 10+0 records in 10+0 records out 5120 bytes (51 MB) copied, 8.36612 s, 6.1 MB/s m...@guest:~$ df -h Filesystem

Re: Can't boot guest with more than 3585MB when using large pages

2009-03-25 Thread Marcelo Tosatti
On Tue, Mar 24, 2009 at 04:57:46PM -0500, Ryan Harper wrote: * Alex Williamson alex.william...@hp.com [2009-03-24 16:07]: On a 2.6.29, x86_64 host/guest, what's special about specifying a guest size of -m 3586 when using -mem-path backed by hugetlbfs? 3585 works, 3586 hangs here:

Re: IO on guest is 20 times slower than host

2009-03-25 Thread Avi Kivity
Kurt Yoder wrote: Hello list, I'm puzzled as to why my KVM guest has IO that is 20 times slower than the KVM host: m...@guest:~$ dd if=/dev/zero of=/tmp/bigfile count=10 10+0 records in 10+0 records out 5120 bytes (51 MB) copied, 8.36612 s, 6.1 MB/s m...@guest:~$ df -h

Re: KVM Port

2009-03-25 Thread Avi Kivity
kvm port wrote: Hi KVM Gurus, We have a EVB with a fpga based RISC processor with VT support. As a proof of concept i have to port KVM onto it. we have run linux as of now. can anyof u help with how should i begin -thanks n regards What's a EVB? What do you mean by a RISC processor with

Re: kvm-guest-drivers-linux-1 virtio_net crash with 2.6.18.8 kernel

2009-03-25 Thread Avi Kivity
Takeshi Sone wrote: Hello, I built kvm-guest-drivers-linux-1 on vanilla 2.6.18.8 kernel. virtio_blk worked fine. However virtio_net crashes right after enabling the device with ifconfig. This happens when the net device is connected to host tap. It works fine with -net user. Host is

Re: Can't boot guest with more than 3585MB when using large pages

2009-03-25 Thread Alex Williamson
On Wed, 2009-03-25 at 13:10 -0300, Marcelo Tosatti wrote: On Tue, Mar 24, 2009 at 04:57:46PM -0500, Ryan Harper wrote: * Alex Williamson alex.william...@hp.com [2009-03-24 16:07]: On a 2.6.29, x86_64 host/guest, what's special about specifying a guest size of -m 3586 when using

Re: IO on guest is 20 times slower than host

2009-03-25 Thread Kurt Yoder
On Mar 25, 2009, at 12:13 PM, Avi Kivity wrote: Kurt Yoder wrote: Hello list, I'm puzzled as to why my KVM guest has IO that is 20 times slower than the KVM host: m...@guest:~$ dd if=/dev/zero of=/tmp/bigfile count=10 10+0 records in 10+0 records out 5120 bytes (51 MB)

Re: IO on guest is 20 times slower than host

2009-03-25 Thread Avi Kivity
Kurt Yoder wrote: I get 141 MB/s on the same test (it only copies to memory anyway). Is your VM under memory pressure? I don't think so. The host has 128 GB of memory, and even the pre-emptive kernel caching doesn't come close to filling it: m...@host:~$ free total

[PATCH] kvm-autotest: log test failed execption string

2009-03-25 Thread Ryan Harper
When a test case fails and throws an execption, we don't log the exception details, only that it occured. reboot: DEBUG: remote_login: Got password prompt; sending '123456' reboot: DEBUG: remote_login: Got shell prompt -- logged in reboot: Logged in reboot: DEBUG: run_once: Test failed;

Re: KVM Port

2009-03-25 Thread kvm port
i used a common term, the RISC processor is having virtualization extensions. A guest mode is added, alongside the user and kernel mode. On Wed, Mar 25, 2009 at 9:45 PM, Avi Kivity a...@redhat.com wrote: kvm port wrote: Hi KVM Gurus, We have a EVB with a fpga based RISC processor with VT

Re: KVM Port

2009-03-25 Thread kvm port
EVB = evaluation board. On Wed, Mar 25, 2009 at 10:15 PM, kvm port kvmp...@gmail.com wrote: i used a common term, the RISC processor is having virtualization extensions. A guest mode is added, alongside the user and kernel mode. On Wed, Mar 25, 2009 at 9:45 PM, Avi Kivity a...@redhat.com

Re: Split kvm source tarballs

2009-03-25 Thread Christoph Hellwig
On Wed, Mar 25, 2009 at 08:44:58AM -0500, Anthony Liguori wrote: That's what I figured. FWIW, the split tarballs work just fine for me. It may be worth waiting to do step 2 until the IO thread is merged. I think once that happens, we could probably do a sprint to get rid of libkvm in

Re: IO on guest is 20 times slower than host

2009-03-25 Thread Kurt Yoder
On Mar 25, 2009, at 12:35 PM, Avi Kivity wrote: Kurt Yoder wrote: I get 141 MB/s on the same test (it only copies to memory anyway). Is your VM under memory pressure? I don't think so. The host has 128 GB of memory, and even the pre- emptive kernel caching doesn't come close to filling

Re: IO on guest is 20 times slower than host

2009-03-25 Thread Avi Kivity
Kurt Yoder wrote: I upped the memory on the VM to 1 GB and ran the same test. It actually got *slower*: m...@guest:~$ free total used free sharedbuffers cached Mem: 1024224 131324 892900 0 1816 18328 -/+ buffers/cache:

Re: IO on guest is 20 times slower than host

2009-03-25 Thread Kurt Yoder
On Mar 25, 2009, at 12:54 PM, Avi Kivity wrote: Kurt Yoder wrote: I upped the memory on the VM to 1 GB and ran the same test. It actually got *slower*: m...@guest:~$ free total used free sharedbuffers cached Mem: 1024224 131324 892900

[ kvm-Bugs-2351676 ] Guests hang periodically on Ubuntu-8.10

2009-03-25 Thread SourceForge.net
Bugs item #2351676, was opened at 2008-11-26 09:59 Message generated for change (Comment added) made by clesiuk You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2351676group_id=180599 Please note that this message will contain a full copy of the comment

Re: IO on guest is 20 times slower than host

2009-03-25 Thread Avi Kivity
Kurt Yoder wrote: What do you mean about the cache? Is my test fundamentally flawed? I *thought* I was testing write speed on the disk... 'dd', without further arguments, will write to the page cache and let the kernel write the data back at a later time. If you increase the block size

Re: Split kvm source tarballs

2009-03-25 Thread Avi Kivity
Christoph Hellwig wrote: On Wed, Mar 25, 2009 at 08:44:58AM -0500, Anthony Liguori wrote: That's what I figured. FWIW, the split tarballs work just fine for me. It may be worth waiting to do step 2 until the IO thread is merged. I think once that happens, we could probably do a sprint

Re: Split kvm source tarballs

2009-03-25 Thread Christoph Hellwig
On Wed, Mar 25, 2009 at 08:02:48PM +0200, Avi Kivity wrote: So how about this: - keep copies of the headers in the qemu repository. 'make sync' becomes a maintainer tool rather than a developer tool Yeah. That similar how we maintain the headers and some shared source file for XFS and

Re: IO on guest is 20 times slower than host

2009-03-25 Thread Kurt Yoder
On Mar 25, 2009, at 1:55 PM, Avi Kivity wrote: Kurt Yoder wrote: What do you mean about the cache? Is my test fundamentally flawed? I *thought* I was testing write speed on the disk... 'dd', without further arguments, will write to the page cache and let the kernel write the data back

Re: kvm-84 and guests with more than 3536 MB Ram?

2009-03-25 Thread Lukas Kolbe
On Di, 2009-03-24 at 16:27 -0500, Ryan Harper wrote: Hi Ryan (and all), the issue seems to be solved, see below. you can test kvm-84 bios with: % cd kvm-84/qemu % ./x86_64-softmmu/qemu-system-x86_64 -L pc-bios all your other options That will force qemu to look in the kvm-84 pc-bios dir

Re: Split kvm source tarballs

2009-03-25 Thread Anthony Liguori
Hi Avi, I spent some time today putting together an approximation of the KVM stable release based on QEMU 0.10.x. In principle, it's not too bad at all because it's just a matter of creating a branch in kvm-userspace that's based a kvm commit sometime after the QEMU 0.10.x release but

RE: KVM Port

2009-03-25 Thread Liu Yu-B13201
IMHO, one thing you should keep in mind is how to isolate the guest space based on your hardware MMU. And then deal with the exceptions carefully, some may be directly send to guest and some should be handled by hypervisor. In powerpc BOOKE implementation, we have to hijack all exceptions,

Luvalley project: running KVM without Linux

2009-03-25 Thread Xiaodong Yi
Luvalley is a Virtual Machine Monitor (VMM) spawned from the KVM project. Its part of source codes are derived from KVM to virtualize CPU instructions and memory management unit (MMU). However, its overall architecture is completely different from KVM, but somewhat like Xen. Luvalley runs outside

Re: Luvalley project: running KVM without Linux

2009-03-25 Thread Jun Koi
Very cool! Who is behind this project? Intel? I will give it a try! Thanks, Jun On Thu, Mar 26, 2009 at 12:20 PM, Xiaodong Yi xdong...@gmail.com wrote: Luvalley is a Virtual Machine Monitor (VMM) spawned from the KVM project. Its part of source codes are derived from KVM to virtualize CPU

Re: Luvalley project: running KVM without Linux

2009-03-25 Thread Sheng Yang
On Thursday 26 March 2009 11:56:20 Jun Koi wrote: Very cool! Who is behind this project? Intel? Not us... According to http://lists.centos.org/pipermail/centos-promo/2009- February/000402.html, it is the Operating System Engineering Research Center in China. -- regards Yang, Sheng I will

[no subject]

2009-03-25 Thread Bear Yang
subscribe kvm -- 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

KVM Port

2009-03-25 Thread kvm port
Hi KVM Gurus, We have a EVB with a fpga based RISC processor with VT support. As a proof of concept i have to port KVM onto it. we have run linux as of now. can anyof u help with how should i begin -thanks n regards kvport bunch -- To unsubscribe from this list: send the line unsubscribe kvm-ppc