Re: [kvm-devel] [PATCH] qemu: free migration structure if migration fails

2007-08-13 Thread Avi Kivity
Jim Paris wrote: Without this, memory is leaked and later attempts fail with Migration already active. Applied, thanks. -- error compiling committee.c: too many arguments to function - This SF.net email is

Re: [kvm-devel] [PATCH] Add support for HPET periodic timer.

2007-08-13 Thread Avi Kivity
Luca Tettamanti wrote: Linux operates the HPET timer in legacy replacement mode, which means that the periodic interrupt of the CMOS RTC is not delivered (qemu won't be able to use /dev/rtc). Add support for HPET (/dev/hpet) as a replacement for the RTC; the periodic interrupt is delivered via

Re: [kvm-devel] AMD XP Problem solved

2007-08-13 Thread Avi Kivity
John Lenz wrote: A while back I reported a crash starting with kvm-29 with Windows XP guest on AMD processors. kvm-33 still fails for me, so I tried to use the kvm git kernel module, (after using make sync LINUX=../../kvm.git from kvm-33 directory), but the compile fails with (on the 2.6.20

Re: [kvm-devel] (no subject)

2007-08-13 Thread Avi Kivity
Anthony Liguori wrote: Hi Izik, On Sun, 2007-08-12 at 12:59 -0700, Izik Eidus wrote: we are working on swapping support for the guests in kvm. we want to allow management of the memory swapping of the guests from kvm. i wrote this patch that move the guest allocated memory from the

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Laurent Vivier
Avi Kivity wrote: Laurent Vivier wrote: The aim of these two patches is to measure the CPU time used by a virtual machine. All comments are welcome... I'm not sure it's the good way to do that. [PATCH 1/2] introduce a new field, guest, in cpustat to store the time used by the CPU to run

Re: [kvm-devel] [Patch] (big) real mode emulation - jmp rel

2007-08-13 Thread Avi Kivity
Nitin A Kamble wrote: Hi Avi, The patch to implement jmp rel emulation is attached. +#define jmp_rel(rel) \ +do { \ + _eip += (int)(rel);

Re: [kvm-devel] add back pending timer irqs for kernel APIC timer

2007-08-13 Thread Avi Kivity
Dong, Eddie wrote: Avi Kivity wrote: Dong, Eddie wrote: Add back pending irqs for apic timer to get precise guest APIC timer interrupt. Can you explain the problem and the solution in more detail? Today guest sleep 10 seconds only get about 5-6 seconds in

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Avi Kivity
Jorge Lucángeli Obes wrote: My feeling is that config files are outdated. When used with a gui, you end up writing silly parsers and stuff and still wrecking things horribly when the the gui writer's expectations don't match reality. When used without a gui, they increase the amount of

Re: [kvm-devel] [Patch] (big) real mode emulation - emulator_write_std

2007-08-13 Thread Avi Kivity
Nitin A Kamble wrote: Hi Avi, I have been collected quiet a few patches in my tree now. They are all in dirty(style, debug) state. Now I started cleaning some of the code in my tree, and cutting patches again. I plan to send you steady stream of patches now. so you can expect lots of

Re: [kvm-devel] [BUG][PATCH?] kvm: unhandled wrmsr: 0xc0000083

2007-08-13 Thread Avi Kivity
Luca Tettamanti wrote: which enabled the compilation of code depending on TARGET_X86_64. Problems arise when the host is in 32 bit mode; Avi fixed part of the issue with d9ff68d1 (masking the LM bit when the host is 32 bit). The MSR issue is caused by load_regs (qemu/qemu-kvm.c); at line 304

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Laurent Vivier
Avi Kivity wrote: Jorge Lucángeli Obes wrote: My feeling is that config files are outdated. When used with a gui, you end up writing silly parsers and stuff and still wrecking things horribly when the the gui writer's expectations don't match reality. When used without a gui, they increase

[kvm-devel] [ kvm-Bugs-1772966 ] host cpu usage is 100% all the time with XP guest

2007-08-13 Thread SourceForge.net
Bugs item #1772966, was opened at 2007-08-13 11:39 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1772966group_id=180599 Please note that this message will contain a full copy of

Re: [kvm-devel] add back pending timer irqs for kernel APIC timer

2007-08-13 Thread Avi Kivity
Dong, Eddie wrote: [EMAIL PROTECTED] wrote: Add back pending irqs for apic timer to get precise guestAPIC timer interrupt. Signed-off-by: Yaozu (Eddie) Dong [EMAIL PROTECTED] a typo, please use this one. With above patches, now guest timer is much accurate! sleep 60

Re: [kvm-devel] modify apic timer last_update to precisely reflect hrtimer fire point.

2007-08-13 Thread Avi Kivity
Dong, Eddie wrote: cleanup: last_update should precisely reflect the time when an hrtimer is fired, and store the period of apic timer to avoid calculation each time. This doesn't apply, I'm guessing it depends on the previous patch. Will wait for your

Re: [kvm-devel] clean APIC_TMCCT setting in APIC timer

2007-08-13 Thread Avi Kivity
Dong, Eddie wrote: APIC_TMCCT is a dynamically running count which always need to be recalculated at the time it is read. Setting intermediate value is meaningless. Signed-off-by: Yaozu (Eddie) Dong [EMAIL PROTECTED] Patch corrupted by your mailer, please resend as

Re: [kvm-devel] add back pending timer irqs for kernel APIC timer

2007-08-13 Thread Gregory Haskins
On Mon, 2007-08-13 at 11:50 +0300, Avi Kivity wrote: This patch keep track of the pending irqs and inject them back to guest eventually even the guest may be descheduled. This is also what we did in Xen. BTW, This policy will also be applied to future kernel PIT, I just do it step by

Re: [kvm-devel] get_dirty_pages returned -2

2007-08-13 Thread Daniel Paquet
What a surprise, you are completely right. :-) Thanks, I dont know why I didn't tryed to remove this switch... On 8/7/07, Avi Kivity [EMAIL PROTECTED] wrote: Daniel Paquet wrote: Hello Devs! On my haste to try new patches and stuff I got this error message looping and using 100% cpu

Re: [kvm-devel] add back pending timer irqs for kernel APIC timer

2007-08-13 Thread Dong, Eddie
Note that my old lapic branch did a similar tdf thing as well and it worked quite nicely, so I think Eddie is on the right track with adding this. I just copied the whole APIC timer stuff from your old patch at that time as TODO. maybe I missed something :-( Time virtualization has quit a

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Avi Kivity
Laurent Vivier wrote: Are these options for using the kernel as a guest or host? I'd guess the former. I didn't find CONFIG_HYPERVISOR. I meant, add a new option CONFIG_HYPERVISOR. The good one seems to be CONFIG_VIRTUALIZATION that is used to activate CONFIG_KVM.

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Laurent Vivier
Avi Kivity wrote: Laurent Vivier wrote: - perhaps the new fields should be guarded by a #ifdef CONFIG_HYPERVISOR (selected by CONFIG_KVM)? that way the (minor) additional overhead is only incurred if it can possibly be used. I imagine that our canine cousin will want to use this as well.

Re: [kvm-devel] add back pending timer irqs for kernel APIC timer

2007-08-13 Thread Dong, Eddie
Avi Kivity wrote: What does pt mean in this context? pending timer? Suggested descriptive names below. Periodic timer. Comments added. if (apic_lvtt_period(apic)) { -u32 offset; -u32 tmict = apic_get_reg(apic, APIC_TMICT); - -offset =

Re: [kvm-devel] add back pending timer irqs for kernel APIC timer

2007-08-13 Thread Dong, Eddie
[EMAIL PROTECTED] wrote: kvm_pt_update_irq is within intr_assist where host IRQ is disabled. It can be updated only after we return to guest. What if it runs on another cpu? This case will be forbidden in next patch. We need to remove apic-lock too. To avoid confuse, I mean hrtimer

Re: [kvm-devel] add back pending timer irqs for kernel APIC timer

2007-08-13 Thread Avi Kivity
Dong, Eddie wrote: Note that my old lapic branch did a similar tdf thing as well and it worked quite nicely, so I think Eddie is on the right track with adding this. I just copied the whole APIC timer stuff from your old patch at that time as TODO. maybe I missed something :-( Time

Re: [kvm-devel] add back pending timer irqs for kernel APIC timer

2007-08-13 Thread Avi Kivity
Dong, Eddie wrote: [EMAIL PROTECTED] wrote: kvm_pt_update_irq is within intr_assist where host IRQ is disabled. It can be updated only after we return to guest. What if it runs on another cpu? This case will be forbidden in next patch. We need to remove apic-lock too.

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Laurent Vivier
Christian Borntraeger wrote: Am Freitag, 10. August 2007 schrieb Laurent Vivier: The aim of these two patches is to measure the CPU time used by a virtual machine. All comments are welcome... I'm not sure it's the good way to do that. I did something similar for or s390guest prototype,

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Christian Borntraeger
Am Montag, 13. August 2007 schrieb Laurent Vivier: [copying Ingo and Rusty] @Avi, seems that sourceforge is mangling the cc list? The patches look good. A couple of comments: - perhaps the new fields should be guarded by a #ifdef CONFIG_HYPERVISOR (selected by CONFIG_KVM)? that

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Avi Kivity
Christian Borntraeger wrote: Am Montag, 13. August 2007 schrieb Avi Kivity: Christian Borntraeger wrote: Am Montag, 13. August 2007 schrieb Laurent Vivier: [copying Ingo and Rusty] @Avi, seems that sourceforge is mangling the cc list?

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Laurent Vivier
Avi Kivity wrote: Laurent Vivier wrote: Christian Borntraeger wrote: Am Freitag, 10. August 2007 schrieb Laurent Vivier: The aim of these two patches is to measure the CPU time used by a virtual machine. All comments are welcome... I'm not sure it's the good way to do that.

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Avi Kivity
Laurent Vivier wrote: Christian Borntraeger wrote: Am Freitag, 10. August 2007 schrieb Laurent Vivier: The aim of these two patches is to measure the CPU time used by a virtual machine. All comments are welcome... I'm not sure it's the good way to do that. I did something

[kvm-devel] [RFH] need ping stats to help debug access problems to kvm.qumranet.com

2007-08-13 Thread Avi Kivity
As you know, we've recently been experiencing connectivity problems to kvm.qumranet.com. In order to debug this, we would appreciate some stats from people who have been hit by this: - the output of 'ping -c 30 kvm.qumranet.com' - the output of 'tracepath kvm.qumranet.com' or 'traceroute

Re: [kvm-devel] add back pending timer irqs for kernel APIC timer

2007-08-13 Thread Dong, Eddie
Avi Kivity wrote: 2: stop hrtimer when the guest is descheduled to increase scalibility and remove apic-lock. Why is this important? An hrtimer is just an entry on a list, no? Does it need an IRQ to drive? If we have ten VMs, we got extra 10 IRQs. Do you mean, just if the guest is

Re: [kvm-devel] add back pending timer irqs for kernel APIC timer

2007-08-13 Thread Avi Kivity
Dong, Eddie wrote: Avi Kivity wrote: 2: stop hrtimer when the guest is descheduled to increase scalibility and remove apic-lock. Why is this important? An hrtimer is just an entry on a list, no? Does it need an IRQ to drive? If we have ten VMs, we got extra 10 IRQs.

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Christian Borntraeger
Am Montag, 13. August 2007 schrieb Laurent Vivier: As guest accounting is hw dependent, I think we should add a hook in the accounting functions. Isn't PF_VM exactly such a hook? All the hypervisor needs to do is to set/unset it correctly? In fact, no. PF_VM is used to know

Re: [kvm-devel] [Qemu-devel] [PATCH 4/4][RFC] Add logic to QEMU to read command line options from qcow2 images

2007-08-13 Thread Anthony Liguori
On Mon, 2007-08-13 at 02:34 -0300, Jorge Lucángeli Obes wrote: On 8/11/07, Anthony Liguori [EMAIL PROTECTED] wrote: On Sat, 2007-08-11 at 22:28 +0100, Philip Boulain wrote: This works, so long as qemu disregards -read-args-from-image unless it's being called as an interpreter. Otherwise,

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Laurent Vivier
Christian Borntraeger wrote: Am Montag, 13. August 2007 schrieb Laurent Vivier: As guest accounting is hw dependent, I think we should add a hook in the accounting functions. Isn't PF_VM exactly such a hook? All the hypervisor needs to do is to set/unset it correctly? In fact, no.

[kvm-devel] [PATCH] Set apic instance number for savevm

2007-08-13 Thread Avi Kivity
This allows save/restore (and live migration on kvm) of smp guests. Index: hw/apic.c === RCS file: /sources/qemu/qemu/hw/apic.c,v retrieving revision 1.13 diff -u -r1.13 apic.c --- hw/apic.c 3 Apr 2007 16:38:34 - 1.13 +++

[kvm-devel] Error while inserting kvm-intel.ko from kvm-34

2007-08-13 Thread (अमेय) Ameya (पाळंदे) Palande
Hi, Today I downloaded kvm-34. When i try to insert kvm-intel.ko module, I get following error, FATAL: Error inserting kvm_intel (/lib/modules/2.6.20-16-generic/extra/kvm-intel.ko): Input/output error OS : Ubuntu 7.04 x86 CPU : Intel core duo T2300 Linux Kernel :

Re: [kvm-devel] Error while inserting kvm-intel.ko from kvm-34

2007-08-13 Thread Avi Kivity
(अमेय) Ameya (पाळंदे) Palande wrote: Hi, Today I downloaded kvm-34. When i try to insert kvm-intel.ko module, I get following error, FATAL: Error inserting kvm_intel (/lib/modules/2.6.20-16-generic/extra/kvm-intel.ko): Input/output error OS : Ubuntu 7.04 x86 CPU

Re: [kvm-devel] Error while inserting kvm-intel.ko from kvm-34

2007-08-13 Thread Simon Gao
Same problem here: Gentoo 2007.0 CPU Intel Coreduo T2500 Kernel 2.6.21-gentoo-r4 Simon (अमेय) Ameya (पाळंदे) Palande wrote: Hi, Today I downloaded kvm-34. When i try to insert kvm-intel.ko module, I get following error, FATAL: Error inserting kvm_intel

Re: [kvm-devel] Error while inserting kvm-intel.ko from kvm-34

2007-08-13 Thread (अमेय) Ameya (पाळंदे) Palande
There is nothing in dmesg :( On 8/13/07, Avi Kivity [EMAIL PROTECTED] wrote: (अमेय) Ameya (पाळंदे) Palande wrote: Hi, Today I downloaded kvm-34. When i try to insert kvm-intel.ko module, I get following error, FATAL: Error inserting kvm_intel

Re: [kvm-devel] Error while inserting kvm-intel.ko from kvm-34

2007-08-13 Thread Avi Kivity
(अमेय) Ameya (पाळंदे) Palande wrote: There is nothing in dmesg :( urk, there are a zillion lines which return EIO without printing anything. Can you run sed -i 's/-EIO/(printk(kvm: EIO at %d\n, __LINE__), -EIO)/' kernel/vmx.c recompile, reinsert, and check dmesg? On 8/13/07, Avi

Re: [kvm-devel] [PATCH] qemu: reset more state after CR/LF

2007-08-13 Thread Avi Kivity
Jim Paris wrote: After receiving CR or LF on the monitor, reset term_last_cmd_* as well. This matches the setup that is done by term_show_prompt(), and is for the case when readline_start() is not called before the next readline_handle_byte(). Without this, unnecessary terminal escape

Re: [kvm-devel] Error while inserting kvm-intel.ko from kvm-34

2007-08-13 Thread (अमेय) Ameya (पाळंदे) Palande
I tried running my guest OS which is plan9 without kvm, and its showing CPU as AMD Athlon on intel machine. If i remember correctly, earlier qemu used to emulate intel processor on intel machines. Is this causing problem ? Regards, Ameya. On 8/13/07, Avi Kivity [EMAIL PROTECTED] wrote: (अमेय)

Re: [kvm-devel] Error while inserting kvm-intel.ko from kvm-34

2007-08-13 Thread (अमेय) Ameya (पाळंदे) Palande
Hi Avi, I followed your steps for modifying vmx.c Here are the messages from dmesg output : kvm: EIO at 852 kvm: EIO at 882 kvm: EIO at 980 Regards, Ameya. On 8/13/07, Avi Kivity [EMAIL PROTECTED] wrote: (अमेय) Ameya (पाळंदे) Palande wrote: There is nothing in dmesg :( urk, there are

Re: [kvm-devel] [PATCH] Add support for HPET periodic timer.

2007-08-13 Thread Luca
On 8/13/07, Daniel P. Berrange [EMAIL PROTECTED] wrote: On Mon, Aug 13, 2007 at 11:04:46AM +0300, Avi Kivity wrote: Luca Tettamanti wrote: Something like: - try to use HPET (unless -no-rtc selected) - try to use RTC (unless -no-rtc selected) - fallback to normal unix facilities If

[kvm-devel] [PATCH] Fix compile time warnings in userspace component

2007-08-13 Thread Luca Tettamanti
Fix a few trivial warnings: - use %zu when printing size_t arguments in printf - include qemu-kvm.h where appropriate - change the return type of kvm_eat_signals Signed-Off-By: Luca Tettamanti [EMAIL PROTECTED] --- qemu/hw/apic.c |4 qemu/migration.c |8

Re: [kvm-devel] kvm warning

2007-08-13 Thread Satyam Sharma
On 8/9/07, Avi Kivity [EMAIL PROTECTED] wrote: Andrew Morton wrote: On Thu, 09 Aug 2007 01:48:07 +0300 Avi Kivity [EMAIL PROTECTED] wrote: Ingo Molnar wrote: * Andrew Morton [EMAIL PROTECTED] wrote: ia64 allmodconfig says drivers/kvm/Kconfig:14:warning: 'select' used by config

Re: [kvm-devel] kvm warning

2007-08-13 Thread Luck, Tony
Solution (1) above sounds preferable, unless there are mysterious reasons why ia64 wants to avoid Kconfig.preempt (adding Tony Luck to Cc:). Send me a patch and unless it causes more problems than it solves, I'll put it in. -Tony

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Thiemo Seufer
Jorge Lucángeli Obes wrote: [snip] When I read Avi's TODO, I basically thought about getting rid of the long command lines I had to store in scripts. I wanted to write that command line once, and then forgetting about it, until I needed to change it. Instead of inventing great and wonderfully

Re: [kvm-devel] [PATCH] Dynamic ticks

2007-08-13 Thread Luca Tettamanti
Il Mon, Aug 13, 2007 at 05:42:55PM +0300, Dan Kenigsberg ha scritto: Dynamic ticks in Qemu: have a SIGALRM generated only when it is needed, instead of every 1 millisecond. This patch requires that the host supports high resolution timers, since it arms a POSIX timer to the nearest Qemu

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Heiko Carstens
The only thing remotely relevant in the list config is that 'Filter out duplicate messages to list members (if possible)' is set as a default for new members. Maybe this means that if a cc is also part of the list, that cc is stripped (which seems a wierd implementation; I'd have

Re: [kvm-devel] [Patch] (big) real mode emulation - emulator_write_std

2007-08-13 Thread Kamble, Nitin A
Hi Avi, I see. I tried using the function emulator_write_emulated() instead. And I don't see any change because of that yet. Thanks Regards, Nitin Linux Open Source Technology Center, Intel Corporation The Mind

Re: [kvm-devel] [Qemu-devel] Re: [PATCH] Dynamic ticks

2007-08-13 Thread Thiemo Seufer
Luca Tettamanti wrote: [snip] I've implemented some of my suggestions in the following patch - rebased to kvm-userspace current git since it's easier to test (...ok, I'm lazy - but you get the idea): diff --git a/qemu/configure b/qemu/configure index 365b7fb..38373db 100755 ---

Re: [kvm-devel] problem upgrading to kvm-33

2007-08-13 Thread Tony Smolar
So you must use the standard HAL? First can you please provide the cpu type, we had some problems on AMD. Second, what's the host's OS? Is it 32/64 bit? kernel version. Third, does -no-kvm works? Some sanities just for making sure: - Try running qemu with taskset -p 1 - Add -L

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

[kvm-devel] [ kvm-Bugs-1773613 ] kvm-34 returns cr0 with ET clear

2007-08-13 Thread SourceForge.net
Bugs item #1773613, was opened at 2007-08-13 21:01 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1773613group_id=180599 Please note that this message will contain a full copy of

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Anthony Liguori
On Mon, 2007-08-13 at 20:39 +0100, Thiemo Seufer wrote: Jorge Lucángeli Obes wrote: [snip] When I read Avi's TODO, I basically thought about getting rid of the long command lines I had to store in scripts. I wanted to write that command line once, and then forgetting about it, until I

Re: [kvm-devel] add back pending timer irqs for kernel APIC timer

2007-08-13 Thread Dong, Eddie
Here are rebased and fixed patches, please check. thanks, eddie commit 9b1a9ad955d9ac44ee6e60b4a565edf044d3dcc7 Author: root [EMAIL PROTECTED](none) Date: Fri Aug 10 22:38:59 2007 +0800 APIC_TMCCT is a dynamically running count which always need to be recalculated at the time it is

Re: [kvm-devel] lapic3 branch rebased

2007-08-13 Thread Dong, Eddie
Avi Kivity wrote: lapic3 has been rebased, compile tested, and pushed. note that this does not include the patch-folding work I'd like to do before merging into master. Thanks and verified it is fine for RHEL5U, XPSP2, FC5, Win2003. So feel free to fold the patches and wanna to see merging

[kvm-devel] KVM Test result, kernel 7a3773c7.. , userspace ab5fd880..

2007-08-13 Thread Zhao, Yunfeng
Hi, all, This is today's KVM test result against kvm.git 7a3773c7d8a0b488e86b98571e5b858a222b12a5 and kvm-userspace.git ab5fd880c4b6ea9fa17b5178a2b9c66bde6c7363. ##What's working: Can boot most ia32/ia32e SMP/UP Linux guests with either acpi enabled or acpi disabled. Can boot ia32 SMP/UP

Re: [kvm-devel] migration with exec giving truncated images

2007-08-13 Thread Jim Paris
Uri Lublin wrote: There is still the mystery of different file sizes for different migration-exec commands, all files are valid saved image. It seems to me that some unmodified pages are being marked as dirty, and are being saved twice (and later loaded twice). I'm still chasing that. Hi

[kvm-devel] [RFC PATCH 5/8] KVM: Add support for IOQ

2007-08-13 Thread Gregory Haskins
IOQ is a shared-memory-queue interface for implmenting PV driver communication. Signed-off-by: Gregory Haskins [EMAIL PROTECTED] --- drivers/kvm/Kconfig|5 + drivers/kvm/Makefile |3 drivers/kvm/ioq.h | 12 +- drivers/kvm/ioq_host.c | 365

[kvm-devel] [RFC PATCH 3/8] KVM: Add a guest side driver for IOQ

2007-08-13 Thread Gregory Haskins
Signed-off-by: Gregory Haskins [EMAIL PROTECTED] --- drivers/kvm/Kconfig | 27 +- drivers/kvm/Makefile |3 - drivers/kvm/ioq.h | 39 + drivers/kvm/ioq_guest.c | 190 + drivers/kvm/pvbus.h | 41

[kvm-devel] [RFC PATCH 0/8] PV device infrastructure

2007-08-13 Thread Gregory Haskins
This patch series represents the state of my current work w.r.t. PV and KVM. It is still a work in progress and so far has only been compile tested (though earlier versions had a test harness that ironed many bugs out). I submit it now as an RFC on the directions I am taking and to solicit

[kvm-devel] [RFC PATCH 6/8] KVM: Add PVBUS support to the KVM host

2007-08-13 Thread Gregory Haskins
PVBUS allows VMM agnostic PV drivers to discover/configure virtual resources Signed-off-by: Gregory Haskins [EMAIL PROTECTED] --- drivers/kvm/Kconfig | 10 + drivers/kvm/Makefile |3 drivers/kvm/kvm.h|4 drivers/kvm/kvm_main.c |4 drivers/kvm/pvbus_host.c |

[kvm-devel] [RFC PATCH 2/8] PARAVIRTUALIZATION: Add support for a bus abstraction

2007-08-13 Thread Gregory Haskins
PV usually comes in two flavors: device PV, and core PV. The existing PV ops deal in terms of the latter. However, it would be useful to add an interface for a virtual bus with provisions for discovery/configuration of backend PV devices. Often times it is desirable to run PV devices even if

[kvm-devel] [RFC PATCH 1/8] IOQ: Adding basic definitions for IO-Queue logic

2007-08-13 Thread Gregory Haskins
IOQ is a generic shared-memory-queue mechanism that happens to be friendly to virtualization boundaries. Note that it is not virtualization specific due to its flexible transport layer. Signed-off-by: Gregory Haskins [EMAIL PROTECTED] --- include/linux/ioq.h | 178

[kvm-devel] [RFC PATCH 4/8] KVM: Add a gpa_to_hva helper function

2007-08-13 Thread Gregory Haskins
Signed-off-by: Gregory Haskins [EMAIL PROTECTED] --- drivers/kvm/kvm.h |1 + drivers/kvm/mmu.c | 12 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 9934f11..05d5be1 100755 --- a/drivers/kvm/kvm.h +++

Re: [kvm-devel] migration with exec giving truncated images

2007-08-13 Thread Jim Paris
I wrote I looked into this a bit more and it seems that a big piece of migration.c is missing or broken. .. Am I missing something? Yes, I am. Sorry, I missed the qemu_live_savevm_state call, which saves the rest of the dirty pages, and explains why some migration images are larger than