Re: [kvm-devel] pinning, tsc and apic

2008-05-15 Thread Ryan Harper
/7_serial.log:time.c: Detected 1995.036 MHz processor. /tmp/8_serial.log:time.c: Detected 1995.013 MHz processor. /tmp/9_serial.log:time.c: Detected 1995.014 MHz processor. -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [EMAIL PROTECTED

[kvm-devel] pinning, tsc and apic

2008-05-12 Thread Ryan Harper
; if (hrtimer_cancel(timer)) hrtimer_start(timer, timer-expires, HRTIMER_MODE_ABS); } Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [EMAIL PROTECTED] - This SF.net email

Re: [kvm-devel] pinning, tsc and apic

2008-05-12 Thread Ryan Harper
* Anthony Liguori [EMAIL PROTECTED] [2008-05-12 15:05]: Ryan Harper wrote: I've been digging into some of the instability we see when running larger numbers of guests at the same time. The test I'm currently using involves launching 64 1vcpu guests on an 8-way AMD box. Note

[kvm-devel] [RFC][PATCH] svm.c: tsc unsigned delta calculation

2008-05-07 Thread Ryan Harper
. If the check doesn't make sense then we'll need to do the math with s64s. Attached patch fixed the case where an idle guest was live-locked. -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [EMAIL PROTECTED] diffstat output: svm.c | 10

Re: [kvm-devel] [PATCH] Don't race while creating a VCPU

2008-04-29 Thread Ryan Harper
the dependencies now explicit. Signed-off-by: Anthony Liguori [EMAIL PROTECTED] This patch passed the same tests I used on the other: 64 1VCPU guest launch, 1 second apart, and a 16-way SMP guest boot. -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838

Re: [kvm-devel] [PATCH] Fix QEMU vcpu thread race with apic_reset

2008-04-28 Thread Ryan Harper
-way SMP guest boot. -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [EMAIL PROTECTED] diffstat output: qemu-kvm.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) Signed-off-by: Ryan Harper [EMAIL PROTECTED

[kvm-devel] [PATCH] Fix QEMU vcpu thread race with apic_reset

2008-04-25 Thread Ryan Harper
There is a race between when the vcpu thread issues a create ioctl and when apic_reset() gets called resulting in getting a badfd error. main threadvcpu thread diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c index 78127de..3513e8c 100644 --- a/qemu/qemu-kvm.c +++ b/qemu/qemu-kvm.c

Re: [kvm-devel] [PATCH] Fix QEMU vcpu thread race with apic_reset

2008-04-25 Thread Ryan Harper
* Ryan Harper [EMAIL PROTECTED] [2008-04-26 00:27]: There is a race between when the vcpu thread issues a create ioctl and when apic_reset() gets called resulting in getting a badfd error. main threadvcpu thread guilt refresh clipped my text short. main thread

Re: [kvm-devel] [PATCH] Make virtio devices multi-function

2008-04-22 Thread Ryan Harper
or 220 network adapters. Have you confirmed that the network devices show up? I was playing around with some of the limits last night and while it is easy to get QEMU to create the adapters, so far I've only had a guest see 29 pci nics (e1000). -- Ryan Harper Software Engineer; Linux

Re: [kvm-devel] [PATCH] add virtio disk geometry feature

2008-04-17 Thread Ryan Harper
* Anthony Liguori [EMAIL PROTECTED] [2008-04-16 16:33]: Rusty Russell wrote: On Thursday 17 April 2008 04:56:37 Ryan Harper wrote: From: Ryan Harper [EMAIL PROTECTED] Rather than faking up some geometry, allow the backend to push the disk geometry via virtio pci config option. Keep

[kvm-devel] [PATCH] add virtio disk geometry feature

2008-04-16 Thread Ryan Harper
From: Ryan Harper [EMAIL PROTECTED] Rather than faking up some geometry, allow the backend to push the disk geometry via virtio pci config option. Keep the old geo code around for compatibility. Signed-off-by: Ryan Harper [EMAIL PROTECTED] Reviewed-by: Anthony Liguori [EMAIL PROTECTED] diff

[kvm-devel] [PATCH] pass virtio disk geometry via config space

2008-04-16 Thread Ryan Harper
From: Ryan Harper [EMAIL PROTECTED] Rather than faking up some geometry, allow the backend to push the disk geometry via virtio pci config option. Keep the old geo code around for compatibility. Signed-off-by: Ryan Harper [EMAIL PROTECTED] Reviewed-by: Anthony Liguori [EMAIL PROTECTED] diff

Re: [kvm-devel] QEMU/KVM: make kvm_arch_load_regs() aware of in kernel APIC

2008-04-04 Thread Ryan Harper
not ready for apic_round_robin vcpu not ready for apic_round_robin With this patch applied, I can start up my fedora8 guest with SMP and I no longer get X11 video corruption. -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [EMAIL

Re: [kvm-devel] [Qemu-devel] PATCH: dont call exit() from pci_nic_init(), let caller handle

2008-03-20 Thread Ryan Harper
* Avi Kivity [EMAIL PROTECTED] [2008-03-20 07:19]: Ryan Harper wrote: While exploring the PCI hotplug code recently posted, I encountered a situation where I don't believe the current behavior is ideal. With hotplug, we can add additional pci-based nic devices like e1000 and rtl8139 from

[kvm-devel] [PATCH] QEMU hotplug: check device name in drive_add

2008-03-20 Thread Ryan Harper
Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [EMAIL PROTECTED] diffstat output: device-hotplug.c | 14 +- 1 files changed, 13 insertions(+), 1 deletion(-) Signed-off-by: Ryan Harper [EMAIL PROTECTED] --- When using drive_add

[kvm-devel] PATCH: dont call exit() from pci_nic_init(), let caller handle

2008-03-19 Thread Ryan Harper
on error instead of exiting and then I've replaced all callers to check the return value and exit(), preserving the existing behavior, but allowing flexibility so hotplug can do the right thing and just report the error rather than exiting the guest. -- Ryan Harper Software Engineer; Linux Technology

Re: [kvm-devel] KVM and WinPE failure

2008-03-07 Thread Ryan Harper
* [EMAIL PROTECTED] [EMAIL PROTECTED] [2008-03-06 18:03]: On Thu, Mar 6, 2008 at 6:19 PM, Ryan Harper [EMAIL PROTECTED] wrote: (dethklok) kvm-63 % ./kvm_stat Please mount debugfs ('mount -t debugfs debugfs /sys/kernel/debug') and ensure the kvm modules are loaded (dethklok) kvm-61

Re: [kvm-devel] KVM and WinPE failure

2008-03-06 Thread Ryan Harper
) kvm-63 % ./kvm_stat Please mount debugfs ('mount -t debugfs debugfs /sys/kernel/debug') and ensure the kvm modules are loaded (dethklok) kvm-61 % sudo mount -t debugfs debugfs /sys/kernel/debug then run ./kvm_stat again -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin

Re: [kvm-devel] KVM not reporting dmidecode

2008-02-14 Thread Ryan Harper
* Avi Kivity [EMAIL PROTECTED] [2008-02-14 04:28]: Ryan Harper wrote: I posted[1] a dmi patches a bit ago on qemu-devel for this. There was a better solution that involved fixing up the BIOS bits (bochs and qemu). That patch is available as well on qemu-devel. I've not see any indication

Re: [kvm-devel] KVM not reporting dmidecode

2008-02-14 Thread Ryan Harper
* Ryan Harper [EMAIL PROTECTED] [2008-02-14 08:02]: * Avi Kivity [EMAIL PROTECTED] [2008-02-14 04:28]: Ryan Harper wrote: I posted[1] a dmi patches a bit ago on qemu-devel for this. There was a better solution that involved fixing up the BIOS bits (bochs and qemu). That patch

[kvm-devel] BOCHS update with DMI functional

2008-02-14 Thread Ryan Harper
to pull in a new version of BOCHS to include with QEMU. Any chance of getting the latest BOCHS included so guests can use the new DMI table generation. -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [EMAIL PROTECTED

[kvm-devel] [PATCH] fix typo in VMX header define

2008-02-11 Thread Ryan Harper
Looking at Intel Volume 3b, page 148, table 20-11 and noticed that the field name is 'Deliver' not 'Deliever'. Attached patch changes the define name and its user in vmx.c -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [EMAIL

Re: [kvm-devel] [Qemu-devel] [PATCH 2 of 3] Optionally link against libuuid if present

2008-01-03 Thread Ryan Harper
release date string in the type 0 table. Setting this date to something newer than typical CONFIG_ACPI_BLACKLIST_YEAR value (2000 in Gutsy's kernels) lets the kernel enable ACPI features (like power-off). Any idea on when you might have a patch that I can test? -- Ryan Harper Software Engineer; Linux

Re: [kvm-devel] PATCH vmx.c: add printk_ratelimit in vmx_intr_assist

2007-12-14 Thread Ryan Harper
* Avi Kivity [EMAIL PROTECTED] [2007-12-14 08:49]: Ryan Harper wrote: Add printk_ratelimit check in front of printk. This prevents spamming of the message during 32-bit ubuntu 6.06server install. Previously, it would hang during the partition formatting stage. Applied

Re: [kvm-devel] PATCH vmx.c: add printk_ratelimit in vmx_intr_assist

2007-12-14 Thread Ryan Harper
* Ryan Harper [EMAIL PROTECTED] [2007-12-14 09:36]: * Avi Kivity [EMAIL PROTECTED] [2007-12-14 08:49]: Ryan Harper wrote: Add printk_ratelimit check in front of printk. This prevents spamming of the message during 32-bit ubuntu 6.06server install. Previously, it would hang during

Re: [kvm-devel] PATCH vmx.c: add printk_ratelimit in vmx_intr_assist

2007-12-14 Thread Ryan Harper
* Ryan Harper [EMAIL PROTECTED] [2007-12-14 16:14]: * Ryan Harper [EMAIL PROTECTED] [2007-12-14 09:36]: * Avi Kivity [EMAIL PROTECTED] [2007-12-14 08:49]: Ryan Harper wrote: Add printk_ratelimit check in front of printk. This prevents spamming of the message during 32-bit ubuntu

[kvm-devel] PATCH vmx.c: add printk_ratelimit in vmx_intr_assist

2007-12-13 Thread Ryan Harper
Add printk_ratelimit check in front of printk. This prevents spamming of the message during 32-bit ubuntu 6.06server install. Previously, it would hang during the partition formatting stage. -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L

[kvm-devel] [PATCH 3 of 3] Add -uuid command line flag

2007-12-11 Thread Ryan Harper
3 files changed, 61 insertions(+), 6 deletions(-) smbios.c | 58 -- sysemu.h |1 + vl.c |8 # HG changeset patch # User Ryan Harper [EMAIL PROTECTED] # Date 1197402122 21600 # Node ID

[kvm-devel] [PATCH 2 of 3] Optionally link against libuuid if present

2007-12-11 Thread Ryan Harper
3 files changed, 38 insertions(+), 2 deletions(-) Makefile.target |5 - configure | 26 ++ smbios.c|9 - # HG changeset patch # User Ryan Harper [EMAIL PROTECTED] # Date 1197402122 21600 # Node ID 115f40a4994be1d5b44ef193b3ccbe8e26410eef

[kvm-devel] [PATCH 1 of 3] export SMBIOS/DMI tables to PC machines

2007-12-11 Thread Ryan Harper
5 files changed, 749 insertions(+), 3 deletions(-) Makefile.target |4 hw/pc.c | 45 smbios.c| 517 +++ smbios_types.h | 182 +++ sysemu.h|4 # HG changeset patch # User Ryan Harper [EMAIL

[kvm-devel] [PATCH 0 of 3] Add SMBIOS/DMI table generation to PC machine

2007-12-11 Thread Ryan Harper
from smbios.c - added uuid_parse implementation allowing -uuid to be available with or without linking against libuuid. - reduced the number of CONFIG_UUID defines Signed-off-by: Ryan Harper [EMAIL PROTECTED] 7 files changed, 848 insertions(+), 11 deletions(-) Makefile.target

Re: [kvm-devel] [PATCH 1 of 3] export SMBIOS/DMI tables to PC machines

2007-12-07 Thread Ryan Harper
* Anthony Liguori [EMAIL PROTECTED] [2007-12-07 14:49]: Ryan Harper wrote: 5 files changed, 754 insertions(+), 2 deletions(-) Makefile.target |4 hw/pc.c | 47 smbios.c| 519 +++ smbios_types.h | 182

[kvm-devel] [PATCH 2 of 3] Optionally link against libuuid if present

2007-12-07 Thread Ryan Harper
3 files changed, 38 insertions(+), 2 deletions(-) Makefile.target |5 - configure | 26 ++ smbios.c|9 - # HG changeset patch # User Ryan Harper [EMAIL PROTECTED] # Date 1197058922 21600 # Node ID 3470dd05f46cc9f14c3fc9561d06031a4bc0ce7a

[kvm-devel] [PATCH 1 of 3] export SMBIOS/DMI tables to PC machines

2007-12-07 Thread Ryan Harper
5 files changed, 754 insertions(+), 2 deletions(-) Makefile.target |4 hw/pc.c | 47 smbios.c| 519 +++ smbios_types.h | 182 +++ sysemu.h|4 # HG changeset patch # User Ryan Harper [EMAIL

[kvm-devel] [PATCH 0 of 3] Add SMBIOS/DMI table generation to PC machine

2007-12-07 Thread Ryan Harper
. The final patch adds a -uuid option for a user to specify their own uuid. These patches should apply against qemu-cvs. Tested on target x86_64-softmmu. Signed-off-by: Ryan Harper [EMAIL PROTECTED] 7 files changed, 821 insertions(+), 5 deletions(-) Makefile.target |9 configure | 26

Re: [kvm-devel] [Qemu-devel] Re: [PATCH 1 of 3] export SMBIOS/DMI tables to PC machines

2007-12-07 Thread Ryan Harper
* Anthony Liguori [EMAIL PROTECTED] [2007-12-07 15:07]: Ryan Harper wrote: * Anthony Liguori [EMAIL PROTECTED] [2007-12-07 14:49]: + +CPUState *first_cpu; This should probably be static. doh, should be extern actually since it's defined elsewhere. Perhaps you

Re: [kvm-devel] [ANNOUNCE] kvm-55 release

2007-12-04 Thread Ryan Harper
/bin/sh: 127: not found make: *** [sync] Error 127 make: Leaving directory `/home/cam/src/KVM/kvm-userspace/kernel' I needed to install the unifdef binary (apt-get install unifdef) and then apply the attached patch to get make LINUX= sync working again. -- Ryan Harper Software Engineer; Linux

[kvm-devel] add kvm-test as client test

2007-11-15 Thread Ryan Harper
out the wiki (http://kvm.qumranet.com/kvmwiki/KVMTest) for instructions on how to create your own tests. Signed-off-by: Ryan Harper [EMAIL PROTECTED] -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [EMAIL PROTECTED] kvmtest.tar.gz

[kvm-devel] add kvm-test as client test

2007-11-15 Thread Ryan Harper
/autotest test/kvmtest/control.testdir If you do not have any kvm-test tests created you will need to do so. Check out the wiki (http://kvm.qumranet.com/kvmwiki/KVMTest) for instructions on how to create your own tests. Signed-off-by: Ryan Harper [EMAIL PROTECTED] -- Ryan Harper Software Engineer

[kvm-devel] Snapshot URL seems to be down

2007-11-12 Thread Ryan Harper
I can't seem to get to the nightly snapshot url: http://people.qumranet.com:/avi/snapshots/ -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [EMAIL PROTECTED

Re: [kvm-devel] Question about KVM-test

2007-10-30 Thread Ryan Harper
the session using: kvm-test-replay in the same directory where the vm.log and screenshots were recorded. kvm-test-replay will re-run qemu as you invoked it with kvm-test-record and attempt to inject the same inputs at the recorded time intervals and match the barriers if any exist. -- Ryan Harper

Re: [kvm-devel] Question about KVM-test

2007-10-30 Thread Ryan Harper
* Alexey Eremenko [EMAIL PROTECTED] [2007-10-30 10:11]: -Original Message- From: Ryan Harper [mailto:[EMAIL PROTECTED] Sent: Tue 10/30/2007 7:46 AM To: Alexey Eremenko Cc: kvm-devel@lists.sourceforge.net Subject: Re: [kvm-devel] Question about KVM-test * Alexey Eremenko

Re: [kvm-devel] BUG_ON in mmu.c:436

2007-09-28 Thread Ryan Harper
* Anthony Liguori [EMAIL PROTECTED] [2007-09-24 16:39]: Ryan Harper wrote: * Avi Kivity [EMAIL PROTECTED] [2007-09-24 02:57]: Ryan Harper wrote: I've run into a nasty bug while trying to install a Linux guest using VMware Server inside a kvm guest (full dmesg attached and recreate

[kvm-devel] BUG_ON in mmu.c:436

2007-09-23 Thread Ryan Harper
menu 2. Skip disk check 3. Wait for anaconda to start to load - gets to a black screen At this point, sometimes the bug will trip, other times, I need to do some work in the host (tar tzvf kvm-43.tar.gz) a couple times and it trips. -- Ryan Harper Software Engineer; Linux Technology Center

Re: [kvm-devel] [RFC][PATCH] ignore set_cr3 GP fault in non-pae mode

2007-09-19 Thread Ryan Harper
* Avi Kivity [EMAIL PROTECTED] [2007-09-19 03:58]: Ryan Harper wrote: We have a test which verifies #GP is not caused by setting the bits on either AMD or Intel chips. Stray bits can get turned on in some cases when switching between 64-bit, PAE and non-PAE address modes. Were you

Re: [kvm-devel] [RFC][PATCH] ignore set_cr3 GP fault in non-pae mode

2007-09-19 Thread Ryan Harper
* Ryan Harper [EMAIL PROTECTED] [2007-09-19 09:56]: * Avi Kivity [EMAIL PROTECTED] [2007-09-19 03:58]: Ryan Harper wrote: We have a test which verifies #GP is not caused by setting the bits on either AMD or Intel chips. Stray bits can get turned on in some cases when switching between

[kvm-devel] [RFC][PATCH] ignore set_cr3 GP fault in non-pae mode

2007-09-18 Thread Ryan Harper
Server, running in a KVM Linux guest. This same test (Linux, VMware-server, booting/running memtest iso) works fine on bare-metal. Thoughts? -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [EMAIL PROTECTED] This patch removes

Re: [kvm-devel] [RFC][PATCH] ignore set_cr3 GP fault in non-pae mode

2007-09-18 Thread Ryan Harper
* Nakajima, Jun [EMAIL PROTECTED] [2007-09-18 16:22]: Anthony Liguori wrote: Ryan Harper wrote: Playing around with running VMware-server within a KVM guest and noticed that whenever we launch a VM within the guest, KVM reports a GP fault in set_cr3. Removing the fault injection

Re: [kvm-devel] [RFC][PATCH] ignore set_cr3 GP fault in non-pae mode

2007-09-18 Thread Ryan Harper
* Zachary Amsden [EMAIL PROTECTED] [2007-09-18 16:59]: On Tue, 2007-09-18 at 16:25 -0500, Ryan Harper wrote: * Nakajima, Jun [EMAIL PROTECTED] [2007-09-18 16:22]: Anthony Liguori wrote: Ryan Harper wrote: Playing around with running VMware-server within a KVM guest and noticed

Re: [kvm-devel] adding support for above 2giga to kvm (include patchs)

2007-08-14 Thread Ryan Harper
* Izik Eidus [EMAIL PROTECTED] [2007-08-14 10:49]: On Tue, 2007-08-14 at 10:09 -0500, Ryan Harper wrote: * Izik Eidus [EMAIL PROTECTED] [2007-08-14 01:29]: Hey Ryan, thanks for the testing, i hope you didnt have too much problems to get it working. Sure, it wasn't too much

Re: [kvm-devel] kvm with above 2 giga (new clean patchs)

2007-08-14 Thread Ryan Harper
-- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [EMAIL PROTECTED] - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find

Re: [kvm-devel] adding support for above 2giga to kvm (include patchs)

2007-08-14 Thread Ryan Harper
* Ryan Harper [EMAIL PROTECTED] [2007-08-14 15:44]: * Izik Eidus [EMAIL PROTECTED] [2007-08-14 15:00]: i am sorry, i wrote you message and it get messed. anyway you remember in the old patch the: +if (ram_size 0xf000) val = 640; /* base memory in K */ i bet

Re: [kvm-devel] adding support for above 2giga to kvm (include patchs)

2007-08-13 Thread Ryan Harper
* Ryan Harper [EMAIL PROTECTED] [2007-08-13 15:29]: * Izik Eidus [EMAIL PROTECTED] [2007-08-12 14:27]: this is a request for comment for patchs that allow kvm to run with more than 2 giga. there are 4 patchs. the first patch(biospatch): is for the bios:now the bios know how to map