[kvm-devel] [PATCH] KVM: VMX: Enabling MSR Bitmap feature

2008-03-28 Thread Yang, Sheng
From 560146a8f93fa61aa6e6a6cc78087e24da8b9693 Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Fri, 28 Mar 2008 13:18:56 +0800 Subject: [PATCH] KVM: VMX: Enabling MSR Bitmap feature MSR Bitmap can control if the accessing of MSR causing VM Exit. Signed-off-by: Sheng Yang [EMAIL

Re: [kvm-devel] [PATCH 5/5] qemu: ARRAY_SIZE redefined

2008-03-28 Thread Carlo Marcelo Arenas Belon
On Fri, Mar 28, 2008 at 10:04:21AM +0300, Avi Kivity wrote: Carlo Marcelo Arenas Belon wrote: qemu/qemu-kvm-x86.c:23:1: warning: ARRAY_SIZE redefined In file included from ../cpu-defs.h:30, from

[kvm-devel] [PATCH] qemu: use ARRAY_SIZE macro as provided by osdep.h

2008-03-28 Thread Carlo Marcelo Arenas Belon
included through qemu-kvm.h - cpu.h - cpu-defs.h for all architectures and resulting otherwise in : qemu/qemu-kvm-x86.c:23:1: warning: ARRAY_SIZE redefined In file included from ../cpu-defs.h:30, from qemu/target-i386/cpu.h:45, from ../qemu-common.h:62, from qemu/hw/hw.h:5,

[kvm-devel] KVM Test result, kernel 2d38988.., userspace 64173d0.. -- One Issue fixed

2008-03-28 Thread Yunfeng Zhao
Hi, all, This is today's KVM test result against kvm.git 2d3898859c4eafc8e67f805f38acae8f31bd24a4 and kvm-userspace.git 64173d009c1f4d163c425b14aa650df5b982428a. One issue fixed: 1. slab error in kmem_cache_destroy(): cache `kvm_vcpu':

[kvm-devel] [PATCH] qemu: remove conflicting dependency to linux/pci.h

2008-03-28 Thread Carlo Marcelo Arenas Belon
remove dependency to the pci linux headers added since c10bf6159ff24501852c91a342c3077d5388b184 and that was generating the following conflict : qemu/hw/cirrus_vga.c:193:1: warning: PCI_COMMAND_SERR redefined In file included from /usr/include/linux/pci.h:21, from

[kvm-devel] [Patch][00/17] kvm-ia64 for kernel V6

2008-03-28 Thread Zhang, Xiantao
Hi This patchset enables kvm on ia64 platform. And it targets for Avi's pull to mainline. Please review. If you don't have concerns, I will ask Avi's pull for kvm.git. Thanks! Also, you can get it from git://git.kernel.org/pub/scm/linux/kernel/git/xiantao/kvm-ia64.git kvm-ia64-mc6 Tony,

[kvm-devel] [15/17][PATCH] kvm/ia64: Add kvm sal/pal virtulization support.

2008-03-28 Thread Zhang, Xiantao
From ba064fc79c5d8577543ae6e4a201f622f0c4b777 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:42:18 +0800 Subject: [PATCH] kvm/ia64: Add kvm sal/pal virtulization support. Some sal/pal calls would be traped to kvm for virtulization from guest firmware.

[kvm-devel] [17/17][PATCH] kvm/ia64: How to boot up guests on kvm/ia64

2008-03-28 Thread Zhang, Xiantao
From 517a89fd248193f6a7049832e2c1b811afe98f96 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:57:33 +0800 Subject: [PATCH] kvm/ia64: How to boot up guests on kvm/ia64 Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- Documentation/ia64/kvm-howto.txt |

[kvm-devel] [06/17][PATCH] kvm/ia64: VMM module interfaces.

2008-03-28 Thread Zhang, Xiantao
From 6af8b4d7ca1d4ec40cc634cf8b0d5ae8d2dc53ce Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:44:37 +0800 Subject: [PATCH] kvm/ia64: VMM module interfaces. vmm.c adds the interfaces with kvm/module, and initialize global data area. Signed-off-by: Xiantao

[kvm-devel] [16/17] [PATCH] kvm:ia64 Enable kvm build for ia64

2008-03-28 Thread Zhang, Xiantao
From 0639faa4a3347771e793e33652667272cc140240 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Fri, 28 Mar 2008 14:58:47 +0800 Subject: [PATCH] kvm:ia64 Enable kvm build for ia64 Update the related Makefile and KConfig for kvm build Signed-off-by: Xiantao Zhang [EMAIL

[kvm-devel] [01/17]PATCH Add API for allocating dynamic TR resouce.

2008-03-28 Thread Zhang, Xiantao
Refined according to Tony's comments. From 837f0508a617ea0386808de9fd0f42ef4aefe5e0 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Thu, 27 Mar 2008 10:18:29 +0800 Subject: [PATCH] Add API for allocating TR resouce. Dynamic TR resouce should be managed in an uniform way.

[kvm-devel] [09/17] [PATCH] kvm/ia64: Add mmio decoder for kvm/ia64.

2008-03-28 Thread Zhang, Xiantao
From 5f82ea88c095cf89cbae920944c05e578f35365f Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 14:48:09 +0800 Subject: [PATCH] kvm/ia64: Add mmio decoder for kvm/ia64. mmio.c includes mmio decoder routines. Signed-off-by: Anthony Xu [EMAIL PROTECTED]

[kvm-devel] [07/17][PATCH] kvm/ia64: Add TLB virtulization support.

2008-03-28 Thread Zhang, Xiantao
From 56d3f7acf8d45d2491646be77ced344dcc516cd7 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:45:40 +0800 Subject: [PATCH] kvm/ia64: Add TLB virtulization support. vtlb.c includes tlb/VHPT virtulization. Signed-off-by: Anthony Xu [EMAIL PROTECTED]

[kvm-devel] [02/17][PATCH] Implement smp_call_function_mask for ia64

2008-03-28 Thread Zhang, Xiantao
From 9118d25b4e98bef3a62429f8c150e8d429396c40 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 12:58:02 +0800 Subject: [PATCH] Implement smp_call_function_mask for ia64 This function provides more flexible interface for smp infrastructure. Signed-off-by:

[kvm-devel] [13/17][PATCH] kvm/ia64: Generate offset values for assembly code use.

2008-03-28 Thread Zhang, Xiantao
From f21b39650592fff4d07c94730b0f4e9aa093b9a8 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:50:13 +0800 Subject: [PATCH] kvm/ia64: Generate offset values for assembly code use. asm-offsets.c will generate offset values used for assembly code for some

[kvm-devel] [12/17][PATCH] kvm/ia64: add optimization for some virtulization faults

2008-03-28 Thread Zhang, Xiantao
From 2dbf7c93ff5e36a221761c690ff12e7be48a6bb2 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:49:38 +0800 Subject: [PATCH] kvm/ia64: add optimization for some virtulization faults optvfault.S adds optimization for some performance-critical virtualization

[kvm-devel] windows guest shows 15 virtual CPU´s in device manager

2008-03-28 Thread Martin Maurer
Hi all, I am running on kernel 2.6.24, KVM 63 – trying windows guests – working quite well. …but why tells the device manager that I have 15 CPU`s (QEMU Virtual CPU version 0.9.1)? The windows task manager is just showing one as expected. I got this issue on winxp sp2 and on vista sp1

[kvm-devel] EFI BIOS and kvm

2008-03-28 Thread Thomas Mueller
hi there is the EFI BIOS (http://fabrice.bellard.free.fr/qemu/download.html - efi-bios.tar.bz2) supposed to work with kvm? I wan't to try installing Mac OS X. README of efi-bios tells You must use the CVS version of QEMU to use the BIOS (the version 0.9.0 won't work) so, which qemu version is

Re: [kvm-devel] EFI BIOS and kvm

2008-03-28 Thread Peter Skogström
Thomas Mueller wrote: hi there is the EFI BIOS (http://fabrice.bellard.free.fr/qemu/download.html - efi-bios.tar.bz2) supposed to work with kvm? I wan't to try installing Mac OS X. There is a guy called Alexander Graf that have succeeded this, see.

Re: [kvm-devel] [08/17][PATCH] kvm/ia64: Add interruption vector table for vmm.

2008-03-28 Thread Akio Takebe
Hi, Xiantao a comments is below. +// 0x3000 Entry 12 (size 64 bundles) External Interrupt (4) +ENTRY(kvm_interrupt) +mov r31=pr// prepare to save predicates +mov r19=12 +mov r29=cr.ipsr +;; +tbit.z p6,p7=r29,IA64_PSR_VM_BIT +tbit.z

Re: [kvm-devel] [Qemu-devel] [PATCH] ignore reads to the EOI register.

2008-03-28 Thread Glauber Costa
Aurelien Jarno wrote: On Wed, Mar 26, 2008 at 09:57:16PM -0300, Glauber Costa wrote: They seem legal in real hardware, even though the EOI is a write-only register. By legal I mean they are completely ignored, but at least, don't cause any bits to be set at ESR. Without this patch, some

Re: [kvm-devel] [PATCH] KVM: MMU: Fix rmap_remove() race

2008-03-28 Thread Andrea Arcangeli
I thought some more about this. BTW, for completeness: normally (with exception of vm_destroy) the put_page run by rmap_remove won't be the last one, but still the page can go in the freelist a moment after put_page runs (leading to the same problem). The VM is prevented to free the page while

Re: [kvm-devel] [11/17][PATCH] kvm/ia64: add processor virtulization support.

2008-03-28 Thread Akio Takebe
Hi, Xiantao and Anthony +void getfpreg(unsigned long regnum, struct ia64_fpreg *fpval, + struct kvm_pt_regs *regs) +{ + /* Take floating register rotation into consideration*/ + if (regnum = IA64_FIRST_ROTATING_FR) + regnum =

[kvm-devel] kvm-63: Windows Server 2003 randomly hangs with 100% CPU

2008-03-28 Thread Felix Leimbach
Hello list, I encountered two Windows Server 2003 Std SP1 guests which would randomly hang with 100% CPU after several hours of normal operation. The guest would not respond at all, not even to ping requests. Its process on the host uses 100% CPU. The Host: Dual-Core AMD Opteron(tm) Processor

Re: [kvm-devel] [12/17][PATCH] kvm/ia64: add optimization for some virtulization faults

2008-03-28 Thread Akio Takebe
Hi, From 2dbf7c93ff5e36a221761c690ff12e7be48a6bb2 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:49:38 +0800 Subject: [PATCH] kvm/ia64: add optimization for some virtulization faults optvfault.S adds optimization for some performance-critical

Re: [kvm-devel] [17/17][PATCH] kvm/ia64: How to boot up guests on kvm/ia64

2008-03-28 Thread Akio Takebe
Hi, I found 3 typos. +3. Get Guest Firmware named as Flash.fd, and put it under right place: + (1) If you have the guest firmware (binary)released by Intel Corp for Xen, you can use it directly. + (2) If you want to build a guest firmware form souce code. souce --- source +5. Known

[kvm-devel] We can offer any medical products you need

2008-03-28 Thread Johnie Rodrigues
The best shop Today you can buy medical goods sitting at home *Most popular medications *Great choice *The cheapest cost you have ever seen http://www.lakerub.com - Check out the new SourceForge.net Marketplace. It's

[kvm-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Marcelo Tosatti
Its necessary to guarantee that pending AIO writes have reached stable storage when the flush request returns. Also change fsync() to fdatasync(), since the modification time is not critical data. Signed-off-by: Marcelo Tosatti [EMAIL PROTECTED] Index: kvm-userspace.io/qemu/block-raw-posix.c

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Jamie Lokier
Marcelo Tosatti wrote: Its necessary to guarantee that pending AIO writes have reached stable storage when the flush request returns. Also change fsync() to fdatasync(), since the modification time is not critical data. +if (aio_fsync(O_DSYNC, acb-aiocb) 0) { BDRVRawState *s =

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Marcelo Tosatti
On Fri, Mar 28, 2008 at 03:07:03PM +, Jamie Lokier wrote: Marcelo Tosatti wrote: Its necessary to guarantee that pending AIO writes have reached stable storage when the flush request returns. Also change fsync() to fdatasync(), since the modification time is not critical data. +

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Paul Brook
On Friday 28 March 2008, Marcelo Tosatti wrote: On Fri, Mar 28, 2008 at 03:07:03PM +, Jamie Lokier wrote: Marcelo Tosatti wrote: Its necessary to guarantee that pending AIO writes have reached stable storage when the flush request returns. Also change fsync() to fdatasync(),

[kvm-devel] Sicoob Executivo - Seguro Mulher

2008-03-28 Thread Sicoob Executivo
Title: Sicoob Executivo Caso não consiga visualizar esta mensagem corretamente, clique aqui. Caso você não queira receber mais informações de nossa Cooperativa, respondaestá mensagem solicitando a exclusão de seu e-mail

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Marcelo Tosatti
On Fri, Mar 28, 2008 at 04:40:54PM +, Paul Brook wrote: On Friday 28 March 2008, Marcelo Tosatti wrote: On Fri, Mar 28, 2008 at 03:07:03PM +, Jamie Lokier wrote: Marcelo Tosatti wrote: Its necessary to guarantee that pending AIO writes have reached stable storage when the

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Paul Brook
Surely you should be using the normal aio notification to wait for the aio_fsync to complete before reporting success to the device. qemu_aio_flush() will wait for all pending AIO requests (including aio_fsync) to complete. Then why do you need to separate fdatasync? Paul

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Ian Jackson
Marcelo Tosatti writes ([Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request ): Its necessary to guarantee that pending AIO writes have reached stable storage when the flush request returns. Surely it isn't necessary to call qemu_aio_flush ? Because those pending AIO writes have not

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Jamie Lokier
Marcelo Tosatti wrote: On Fri, Mar 28, 2008 at 03:07:03PM +, Jamie Lokier wrote: Marcelo Tosatti wrote: Its necessary to guarantee that pending AIO writes have reached stable storage when the flush request returns. Also change fsync() to fdatasync(), since the modification time

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Marcelo Tosatti
On Fri, Mar 28, 2008 at 05:00:39PM +, Paul Brook wrote: Surely you should be using the normal aio notification to wait for the aio_fsync to complete before reporting success to the device. qemu_aio_flush() will wait for all pending AIO requests (including aio_fsync) to complete.

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Marcelo Tosatti
On Fri, Mar 28, 2008 at 06:03:25PM +, Jamie Lokier wrote: Marcelo Tosatti wrote: On Fri, Mar 28, 2008 at 03:07:03PM +, Jamie Lokier wrote: Marcelo Tosatti wrote: Its necessary to guarantee that pending AIO writes have reached stable storage when the flush request returns.

[kvm-devel] regression breaks lowmem reserved RAM

2008-03-28 Thread Andrea Arcangeli
This is crashing at boot my lowmem reserved RAM patch. This is causing GFP_DMA allocations at boot for no good reason. It crashes in my case because there's no ram below 16M available to linux. Are you sure this is needed at all, for sure if there's any bug this isn't the right fix. Please

Re: [kvm-devel] [PATCH] KVM: MMU: Fix rmap_remove() race

2008-03-28 Thread Andrea Arcangeli
On Fri, Mar 28, 2008 at 03:01:13PM +0100, Andrea Arcangeli wrote: @@ -271,8 +292,12 @@ int __kvm_set_memory_region(struct kvm *kvm, r = -EINVAL; /* General sanity checks */ + if (mem-userspace_addr (PAGE_SIZE - 1)) + goto out; if (mem-memory_size

[kvm-devel] [PATCH] [mq]: add_kvm_guest_wait_handlers

2008-03-28 Thread Jerone Young
# HG changeset patch # User Jerone Young [EMAIL PROTECTED] # Date 1206732207 18000 # Node ID 82daf2163e7a8eb26b446550937e517be86c297c # Parent e48cf2ad6c85c457ff64c04b83960fc305420842 [mq]: add_kvm_guest_wait_handlers -

[kvm-devel] idle load

2008-03-28 Thread Antoine Martin
-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): select(0, [], NULL, NULL, {0, 0}) = 0 (Timeout) clock_gettime(CLOCK_MONOTONIC, {1046993, 598906624}) = 0

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Jamie Lokier
Marcelo Tosatti wrote: I don't think the first qemu_aio_flush() is necessary because the fsync request will be enqueued after pending ones: aio_fsync() function does a sync on all outstanding asynchronous I/O operations associated with aiocbp-aio_fildes. More

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Jamie Lokier
Marcelo Tosatti wrote: static void raw_flush(BlockDriverState *bs) { BDRVRawState *s = bs-opaque; -fsync(s-fd); +raw_aio_flush(bs); + +/* We rely on the fact that no other AIO will be submitted + * in parallel, but this should be fixed by per-device + * AIO

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Paul Brook
That'll depend on what kind of device is emulated. Does the SCSI emulation handle multiple in-flight commands with any guarantee on order? SCSI definitely allows (and we emulate) multiple in flight commands. I can't find any requirement that writes must complete before a subsequent

Re: [kvm-devel] [08/17][PATCH] kvm/ia64: Add interruption vector table for vmm.

2008-03-28 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Xiantao a comments is below. +// 0x3000 Entry 12 (size 64 bundles) External Interrupt (4) +ENTRY(kvm_interrupt) +mov r31=pr// prepare to save predicates +mov r19=12 +mov r29=cr.ipsr +;; +tbit.z p6,p7=r29,IA64_PSR_VM_BIT +

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Jamie Lokier
Paul Brook wrote: That'll depend on what kind of device is emulated. Does the SCSI emulation handle multiple in-flight commands with any guarantee on order? SCSI definitely allows (and we emulate) multiple in flight commands. I can't find any requirement that writes must complete before

Re: [kvm-devel] [14/17][PATCH] kvm/ia64: Add guest interruptioninjection support.

2008-03-28 Thread Zhang, Xiantao
INITIAL_PSR_VALUE_AT_INTERRUPTION 0x001808028034 + Xen also use this value, you had better use macros of PSR bits. Or you can add the same comments as Xen. Hi, Akio. The comment is where it is used. Anyway, using macro is better. Changed.

Re: [kvm-devel] [11/17][PATCH] kvm/ia64: add processor virtulization support.

2008-03-28 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Xiantao and Anthony +void getfpreg(unsigned long regnum, struct ia64_fpreg *fpval, +struct kvm_pt_regs *regs) +{ +/* Take floating register rotation into consideration*/ +if (regnum = IA64_FIRST_ROTATING_FR) +regnum =

Re: [kvm-devel] [17/17][PATCH] kvm/ia64: How to boot up guests on kvm/ia64

2008-03-28 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, I found 3 typos. +3. Get Guest Firmware named as Flash.fd, and put it under right place: + (1) If you have the guest firmware (binary)released by Intel Corp for Xen, you can use it directly. +(2) If you want to build a guest firmware form souce code. souce

[kvm-devel] [Patch][00/17] kvm-ia64 for kernel V7

2008-03-28 Thread Zhang, Xiantao
Compared with V6, 1. Updated the PATCH 01 according to Tony's comments. 2. Updated the PATCH 14 according to Akio's comments. 3. Updated the PATCH 17 according to Akio's comments. The latest patchset is located at git://git.kernel.org/pub/scm/linux/kernel/git/xiantao/kvm-ia64.git kvm-ia64-mc7.

[kvm-devel] [17/17][PATCH] kvm/ia64: How to boot up guests on kvm/ia64 V7

2008-03-28 Thread Zhang, Xiantao
From 454e8a4473ed13ce313b2ba3b654feb926a891b7 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:57:33 +0800 Subject: [PATCH] kvm/ia64: How to boot up guests on kvm/ia64 Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- Documentation/ia64/kvm-howto.txt |

Re: [kvm-devel] [Qemu-devel] [PATCH] QEMU: fsync AIO writes on flush request

2008-03-28 Thread Paul Brook
On Saturday 29 March 2008, Jamie Lokier wrote: Paul Brook wrote: That'll depend on what kind of device is emulated. Does the SCSI emulation handle multiple in-flight commands with any guarantee on order? SCSI definitely allows (and we emulate) multiple in flight commands. I can't

[kvm-devel] [01/17]PATCH Add API for allocating dynamic TR resouce. V7

2008-03-28 Thread Zhang, Xiantao
From 1028321e00b0f3a60fc414484754f489a70f2400 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Sat, 29 Mar 2008 09:23:37 +0800 Subject: [PATCH] Add API for allocating Dynamic TR resouce. Dynamic TR resouce should be managed in an uniform way. Signed-off-by: Xiantao Zhang