Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure (v2)

2007-12-03 Thread Avi Kivity
Amit Shah wrote: > * Anthony Liguori wrote: > >> Amit Shah wrote: >> >>> * Anthony Liguori wrote: >>> >>> >>> This patch refactors the current hypercall infrastructure to better support live migration and SMP. It eliminates the hypercall page by trapping the UD exce

Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure (v2)

2007-12-03 Thread Amit Shah
* Anthony Liguori wrote: > Amit Shah wrote: > > * Anthony Liguori wrote: > >   > > > >> This patch refactors the current hypercall infrastructure to better > >> support live migration and SMP.  It eliminates the hypercall page by > >> trapping the UD exception that would occur if you used the wrong

Re: [kvm-devel] [stable] [PATCH 00/10]: KVM updates for 2.6.23.9 (-stable)

2007-12-03 Thread Avi Kivity
Greg KH wrote: > On Sun, Dec 02, 2007 at 01:18:37PM +0200, Avi Kivity wrote: > >> The following patchset fixes some bugs in KVM for the next 2.6.23.y stable >> release. Please apply. >> > > I'm guessing that all of these are already upstream in Linus's tree? > > Yes, except one, which

[kvm-devel] VM Snapshots ?

2007-12-03 Thread Slohm Gadaburi
Hi all.. I want to use VM Snapshots.. But I read QEMU's docs saying that one must use qcow2 file image for that. The problem is that My Ubuntu 7.04-based qemu-img (v 0.8.2) has only qcow... thank you slohm - SF.Net email is

[kvm-devel] [PATCH][9/10]kvm: qemu: Using kvm_arch_try_push_interrupts to hold arch-sepcific stuff.

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 17:16:34 +0800 Subject: [PATCH] kvm: qemu: Using kvm_arch_try_push_interrupts to hold arch-sepcific stuff. In this patch, kvm_arch_try_push_interrupts is used to handle arch-specific operations for try_push_interrupts. Signed-off-by: Zha

[kvm-devel] [PATCH][10/10]kvm: qemu: Using kvm_arch_update_regs_for_sipi to hold arch-specific sipi operations.

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 17:22:22 +0800 Subject: [PATCH] kvm: qemu: Using kvm_arch_update_regs_for_sipi to hold arch-specific sipi operations. In this patch, kvm_arch_update_regs_for_sipi is introduced for handling arch-specific update_regs once sipi received. S

[kvm-devel] [PATCH] [0/10]Patches to split qemu-kvm.c

2007-12-03 Thread Zhang, Xiantao
Hi, Avi This series of patches are introduced to split qemu-kvm.c, and make it arch-independent. In these patches, one file called qemu-kvm-x86.c is created. For arch-specific stuff, I also use kvm_arch prefix to hold arch-specific code. Tested on x86 and x86_64 platform. [1/10]kvm: qemu : prepa

[kvm-devel] [PATCH][1/10] kvm: qemu : preparation for qemu-kvm.c split.

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 14:56:35 +0800 Subject: [PATCH] kvm: qemu : preparation for qemu-kvm.c split. This patch adds qemu-kvm-x86.c to hold x86-specific code. Signed-off-by: Zhang Xiantao <[EMAIL PROTECTED]> --- qemu/Makefile.target |4 qemu/qemu-kvm

[kvm-devel] [PATCH][2/10]

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 15:30:45 +0800 Subject: [PATCH] kvm: qemu: split kvm_qemu_create_context. This patche splits kvm_qemu_create_context and moves x86-specific to qemu-kvm-x86.c. Temporarily set kvm_has_msr_star to a gloabal variant. Signed-off-by: Zhang Xi

[kvm-devel] [4/10]kvm: qemu: Split kvm_qemu_init_env.

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 16:12:42 +0800 Subject: [PATCH] kvm: qemu: Split kvm_qemu_init_env. Using kvm_arch_qemu_init_env to hold x86-specific stuff. Moving corresponding static funtions to qemu-kvm-x86.c Changing back lm_capable_kernel to static variants. Signe

[kvm-devel] [PATCH][5/10]kvm: qemu, Add kvm_arch_halt to handle arch-specific halt operations.

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 16:29:16 +0800 Subject: [PATCH] kvm: qemu, Add kvm_arch_halt to handle arch-specific halt operations. In this patch, one arch-specific interface kvm_arch_halt is added to handle arch halts. Signed-off-by: Zhang Xiantao <[EMAIL PROTECTED]

[kvm-devel] [PATCH] [7/10]kvm: qemu: using kvm_arch_post_kvm_run to hold x86-specific code.

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 16:51:23 +0800 Subject: [PATCH] kvm: qemu: using kvm_arch_post_kvm_run to hold x86-specific code. In this patch, it use kvm_arch_post_kvm_run to hold x86-specific code for post_kvm_run; Signed-off-by: Zhang Xiantao <[EMAIL PROTEC

[kvm-devel] [PATCH][8/10]kvm: qemu: Using to kvm_arch_has_work to handle arch-specific has_work check.

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 16:58:03 +0800 Subject: [PATCH] kvm: qemu: Using to kvm_arch_has_work to handle arch-specific has_work check. In this patch, kvm_arch_has_work is introduced to hanlde arch-specific check. Signed-off-by: Zhang Xiantao <[EMAIL PROTECTED]>

[kvm-devel] [PATCH][6/10]kvm: qemu: using kvm_arch_pre_kvm_run to hold x86-specific code.

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 16:46:05 +0800 Subject: [PATCH] kvm: qemu: using kvm_arch_pre_kvm_run to hold x86-specific code. In this patch, it use kvm_arch_pre_kvm_run to hold x86-specific code for pre_kvm_run; Signed-off-by: Zhang Xiantao <[EMAIL PROTECTED]> ---

Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure (v2)

2007-12-03 Thread Amit Shah
* Avi Kivity wrote: > Amit Shah wrote: > > * Anthony Liguori wrote: > >   > > > >> Amit Shah wrote: > >>     > >> > >> What are you using to issue the hypercall? > >>     > > > > +       r = kvm_hypercall1(KVM_PV_PCI_DEVICE, page_gfn); > > > > Setup is done by: > > > > +       if (!kvm_para_availab

Re: [kvm-devel] VM Snapshots ?

2007-12-03 Thread Uri Lublin
> From: [EMAIL PROTECTED] on behalf of Slohm Gadaburi > Sent: Mon 03/12/2007 12:10 > To: kvm-devel@lists.sourceforge.net > Subject: [kvm-devel] VM Snapshots ? > > Hi all.. > > I want to use VM Snapshots.. But I read QEMU's docs saying > that one must use qcow2 file image for that. The problem

Re: [kvm-devel] [stable] [PATCH 00/10]: KVM updates for 2.6.23.9 (-stable)

2007-12-03 Thread Greg KH
On Mon, Dec 03, 2007 at 11:23:19AM +0200, Avi Kivity wrote: > Greg KH wrote: > > On Sun, Dec 02, 2007 at 01:18:37PM +0200, Avi Kivity wrote: > > > >> The following patchset fixes some bugs in KVM for the next 2.6.23.y stable > >> release. Please apply. > >> > > > > I'm guessing that all of

Re: [kvm-devel] [stable] [PATCH 00/10]: KVM updates for 2.6.23.9 (-stable)

2007-12-03 Thread Avi Kivity
Greg KH wrote: >> 1 a012e65aee48379a7a87eadafa74f878b61522b9 >> 2 4e62417bf317504c0b85e0d7abd236f334f54eaf >> 3 651a3e29b3d19418d7a8a9787906061f9be7cc5f >> 4 cf5a94d1331b411b84414c13e43f578260942d6b >> 5 00b2ef475d4728ca53a2bc788c7978042907e354 >> 6 N/A >> 7 404fb881b82cf0cf6981832f8d31a7484e4

Re: [kvm-devel] [PATCH] [0/10]Patches to split qemu-kvm.c

2007-12-03 Thread Avi Kivity
Zhang, Xiantao wrote: > Hi, Avi > This series of patches are introduced to split qemu-kvm.c, and make it > arch-independent. > In these patches, one file called qemu-kvm-x86.c is created. For > arch-specific stuff, I also use kvm_arch prefix to hold arch-specific > code. > Tested on x86 and x86_6

Re: [kvm-devel] [stable] [PATCH 00/10]: KVM updates for 2.6.23.9 (-stable)

2007-12-03 Thread Greg KH
On Mon, Dec 03, 2007 at 03:11:03PM +0200, Avi Kivity wrote: > Greg KH wrote: > > > > >> 1 a012e65aee48379a7a87eadafa74f878b61522b9 > >> 2 4e62417bf317504c0b85e0d7abd236f334f54eaf > >> 3 651a3e29b3d19418d7a8a9787906061f9be7cc5f > >> 4 cf5a94d1331b411b84414c13e43f578260942d6b > >> 5 00b2ef475d47

Re: [kvm-devel] How to handle kvm-abi-10 case for other archs.

2007-12-03 Thread Zhang, Xiantao
Jeremy Katz wrote: > On Sat, 2007-12-01 at 12:10 +0200, Avi Kivity wrote: >> Zhang, Xiantao wrote: >>> I think new archs for kvm doesn't need to care about kvm-abi >>> case in their code, since current abi is bigger than 10. But in >>> current libkvm.c, we can see that many abi-specific code in

Re: [kvm-devel] How to handle kvm-abi-10 case for other archs.

2007-12-03 Thread Jeremy Katz
On Sat, 2007-12-01 at 12:10 +0200, Avi Kivity wrote: > Zhang, Xiantao wrote: > > I think new archs for kvm doesn't need to care about kvm-abi > > case in their code, since current abi is bigger than 10. But in current > > libkvm.c, we can see that many abi-specific code in it. How to handle it

Re: [kvm-devel] [PATCH] [0/10]Patches to split qemu-kvm.c

2007-12-03 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> Hi, Avi >> This series of patches are introduced to split qemu-kvm.c, and make >> it arch-independent. In these patches, one file called >> qemu-kvm-x86.c is created. For arch-specific stuff, I also use >> kvm_arch prefix to hold arch-specific code. Test

Re: [kvm-devel] VM Snapshots ?

2007-12-03 Thread Slohm Gadaburi
Hi Uri, On 12/3/07, Uri Lublin <[EMAIL PROTECTED]> wrote: > > From: [EMAIL PROTECTED] on behalf > of Slohm Gadaburi > > Sent: Mon 03/12/2007 12:10 > > To: kvm-devel@lists.sourceforge.net > > Subject: [kvm-devel] VM Snapshots ? > > > I want to use VM Snapshots.. But I read QEMU's docs saying > > th

[kvm-devel] [PATCH][0/5] kvm:libkvm : KVM/IA64 libkvmfor ia64

2007-12-03 Thread Zhang, Xiantao
Hi, Avi These patches enable libkvm built successfully for ia64. This is the preparation support for kvm/ia64. It will help us to reduce the maintain effor once check-in. I will send the subsequent patches to enable ia64 userspace support. [1/5] Update configure file to make it work fo

[kvm-devel] [PATCH][3/5] kvm:libkvm: Add kvm-ia64.h

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 13:57:07 +0800 Subject: [PATCH] Add kvm-ia64.h. This patch adds kvm-ia64.h, and use getpagesize to get host page size, since ia64 can use multiple type of page size in kernel. Signed-off-by: Zhang Xiantao <[EMAIL PROTECTED]> --- libkvm/

[kvm-devel] [PATCH] [1/5] Update configure file to support ia64

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 13:37:44 +0800 Subject: [PATCH] Update the configure to make it work for ia64 Signed-off-by: Zhang Xiantao <[EMAIL PROTECTED]> --- configure |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/configure b/configu

[kvm-devel] [PATCH][4/5] kvm: libkvm: Moving set and get shadow pages functions to arch x86

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 22:06:04 +0800 Subject: [PATCH] kvm: libkvm. Moving set and get shadow pages to x86 arch. Move kvm_set&get_shadow_pages to arch-x86 for libkvm Signed-off-by: Zhang Xiantao <[EMAIL PROTECTED]> --- libkvm/libkvm-x86.c | 34 +

[kvm-devel] [PATCH][5/5] Placing the declaration of kvm_set&get_cr8 declaration to x86 specific area.

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 22:11:02 +0800 Subject: [PATCH] kvm: libkvm. Placing the declaration of kvm_set&get_cr8 declaration under the constraints of x86. Placing the declaration of kvm_set&get_cr8 declaration under the constraints of x86. Signed-off-by: Zhang

[kvm-devel] [PATCH][2/5] Add libkvm-ia64.c

2007-12-03 Thread Zhang, Xiantao
From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 13:48:20 +0800 Subject: [PATCH] Add libkvm-ia64.c, required by ia64 arch compile. Signed-off-by: Zhang Xiantao <[EMAIL PROTECTED]> --- libkvm/config-ia64.mak |5 +++ libkvm/libkvm-ia64.c | 83

Re: [kvm-devel] VM Snapshots ?

2007-12-03 Thread Uri Lublin
> From: Slohm Gadaburi [mailto:[EMAIL PROTECTED] > On 12/3/07, Uri Lublin <[EMAIL PROTECTED]> wrote: > > > From: [EMAIL PROTECTED] on behalf of Slohm Gadaburi > > > I want to use VM Snapshots.. But I read QEMU's docs saying > > > that one must use qcow2 file image for that. The problem is that >

[kvm-devel] Your Online Account With Natwest Bank! (message id: 2692519)

2007-12-03 Thread Natwest Bank
National Westminster Bank has been receiving complaints from our customers for unauthorised use of the Natwest Online accounts. As a result we periodically review Natwest Online Accounts and temporarily restrict access of those accounts which we think are vulnerable to the

[kvm-devel] (no subject)

2007-12-03 Thread Alexander R
- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50

[kvm-devel] 'info blockstats' to collect block device statistics

2007-12-03 Thread Richard W.M. Jones
I wonder if KVM would be interested in taking my QEMU patch to support block device statistics. This patch collects per-block-device statistics and allows them to be displayed in the monitor through a 'info blockstats' command. It generalises the VMDK-only support for this which was added to K

Re: [kvm-devel] 'info blockstats' to collect block device statistics

2007-12-03 Thread Izik Eidus
Richard W.M. Jones wrote: > I wonder if KVM would be interested in taking my QEMU patch to support > block device statistics. > > This patch collects per-block-device statistics and allows them to be > displayed in the monitor through a 'info blockstats' command. It > generalises the VMDK-only s

[kvm-devel] [PATCH 2 of 3] Move IO device definitions to its own header file

2007-12-03 Thread Hollis Blanchard
Signed-off-by: Hollis Blanchard <[EMAIL PROTECTED]> --- 4 files changed, 65 insertions(+), 42 deletions(-) drivers/kvm/iodev.h| 63 drivers/kvm/irq.h |1 drivers/kvm/kvm.h | 42 drivers/kvm/kvm_ma

[kvm-devel] [PATCH 3 of 3] Stop including x86-specific headers in kvm_main.c

2007-12-03 Thread Hollis Blanchard
Signed-off-by: Hollis Blanchard <[EMAIL PROTECTED]> --- 5 files changed, 19 insertions(+), 9 deletions(-) drivers/kvm/i8259.c|1 + drivers/kvm/irq.h |7 ++- drivers/kvm/kvm.h |9 - drivers/kvm/kvm_main.c |3 --- drivers/kvm/x86.h |8 diff --

[kvm-devel] [PATCH 0 of 3] Portability: allow for non-x86 headers

2007-12-03 Thread Hollis Blanchard
These patches allow us to stop unconditionally including x86 headers, which allows us to provide alternative definitions. The first two just split things out to avoid circular header dependencies. In fact, with just a couple additional hacks, I was finally able to get a stub PowerPC implementation

[kvm-devel] [PATCH 1 of 3] Move address types to their own header file

2007-12-03 Thread Hollis Blanchard
Signed-off-by: Hollis Blanchard <[EMAIL PROTECTED]> --- 2 files changed, 43 insertions(+), 19 deletions(-) drivers/kvm/kvm.h | 21 ++--- drivers/kvm/types.h | 41 + diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h --- a/drivers/kvm/kv

[kvm-devel] [PATCH] RFC: Create kvm_arch_vcpu_runnable() function

2007-12-03 Thread Hollis Blanchard
Signed-off-by: Hollis Blanchard <[EMAIL PROTECTED]> --- vcpu->mp_state looks like an arch-specific field, so what do we think about this patch? It might make sense to fold the kvm_cpu_has_interrupt() test inside kvm_arch_vcpu_runnable() as well. 2 files changed, 9 insertions(+), 3 deletions(-) dri

[kvm-devel] [PATCH] RFC: Use CONFIG_HAS_IOPORT around vcpu->pio_data

2007-12-03 Thread Hollis Blanchard
Signed-off-by: Hollis Blanchard <[EMAIL PROTECTED]> --- pio_data is obviously arch-specific, but we might be able to get by with an ifdef in kvm_vcpu_nopage() rather than needing an arch hook. Thoughts? 1 file changed, 2 insertions(+) drivers/kvm/kvm_main.c |2 ++ diff --git a/drivers/kvm/kvm

Re: [kvm-devel] [PATCH] Move x86 ioctldefinitions from include/linux/kvm.h

2007-12-03 Thread Zhang, Xiantao
Jerone Young wrote: > Actually this is was probably way overkill on moving these. I don't > think that this patch is really needed. So I say just leave it be. > Since they are macros they really cause no harm being where they are. > It's also easier to make sure that none collide on the numbers th

Re: [kvm-devel] [PATCH] RFC: Use CONFIG_HAS_IOPORT around vcpu->pio_data

2007-12-03 Thread Hollis Blanchard
Actually, (now that I try to build with it :) this doesn't work for PowerPC, which defines (or rather, doesn't not define) CONFIG_HAS_IOPORT. So I guess a callout to arch code will do. I'll send a patch sometime. -- Hollis Blanchard IBM Linux Technology Center On Mon, 2007-12-03 at 16:14 -0600,

Re: [kvm-devel] [kvm-ppc-devel] [PATCH] RFC: Use CONFIG_HAS_IOPORTaround vcpu->pio_data

2007-12-03 Thread Zhang, Xiantao
Hollis Blanchard wrote: > Actually, (now that I try to build with it :) this doesn't work for > PowerPC, which defines (or rather, doesn't not define) > CONFIG_HAS_IOPORT. You mean ppc has ioport , but you don't use current kvm io infrastructure to handle it ? Xiantao > On Mon, 2007-12-03 at 16

Re: [kvm-devel] [kvm-ppc-devel] [PATCH] RFC: UseCONFIG_HAS_IOPORTaround vcpu->pio_data

2007-12-03 Thread Zhang, Xiantao
Hollis Blanchard wrote: > On Tue, 2007-12-04 at 12:39 +0800, Zhang, Xiantao wrote: >> Hollis Blanchard wrote: >>> Actually, (now that I try to build with it :) this doesn't work for >>> PowerPC, which defines (or rather, doesn't not define) >>> CONFIG_HAS_IOPORT. >> >> You mean ppc has ioport , bu

Re: [kvm-devel] [kvm-ppc-devel] [PATCH] RFC: Use CONFIG_HAS_IOPORTaround vcpu->pio_data

2007-12-03 Thread Hollis Blanchard
On Tue, 2007-12-04 at 12:39 +0800, Zhang, Xiantao wrote: > Hollis Blanchard wrote: > > Actually, (now that I try to build with it :) this doesn't work for > > PowerPC, which defines (or rather, doesn't not define) > > CONFIG_HAS_IOPORT. > > You mean ppc has ioport , but you don't use current kvm i

Re: [kvm-devel] [kvm-ppc-devel] [PATCH] RFC: UseCONFIG_HAS_IOPORTaround vcpu->pio_data

2007-12-03 Thread Hollis Blanchard
On Tue, 2007-12-04 at 13:04 +0800, Zhang, Xiantao wrote: > > Hollis Blanchard wrote: > > On Tue, 2007-12-04 at 12:39 +0800, Zhang, Xiantao wrote: > >> Hollis Blanchard wrote: > >>> Actually, (now that I try to build with it :) this doesn't work > for > >>> PowerPC, which defines (or rather, doesn'