[PATCH] apic: test tsc deadline timer

2011-10-09 Thread Liu, Jinsong
something? how can I get test log? Thanks, Jinsong == From 92d05a2caca4d0a35651bd06b88cf78b4e24d5b7 Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Sun, 9 Oct 2011 17:16:17 +0800 Subject: [PATCH] apic: test tsc deadline timer Test tsc deadline timer: detect tsc

RE: [PATCH] apic: test tsc deadline timer

2011-10-09 Thread Liu, Jinsong
Avi Kivity wrote: On 10/09/2011 12:05 PM, Liu, Jinsong wrote: Marcelo, I add test case for tsc deadline timer https://github.com/avikivity/kvm-unit-tests, as attached. According to the kvm-unit-tests README, I try to run qemu-system-x86_64 -device testdev,chardev=testlog -chardev file

RE: [PATCH] apic: test tsc deadline timer

2011-10-09 Thread Liu, Jinsong
Updated test case for kvm tsc deadline timer https://github.com/avikivity/kvm-unit-tests, as attached. Thanks, Jinsong = From 2b476cf741b36da5df35cf2e8f7f9562e8245fcd Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Sun, 9 Oct 2011 22:45:39 +0800 Subject

[PATCH] Update README example

2011-10-09 Thread Liu, Jinsong
-tests README. Thanks, Jinsong = From ba2da790502f0ce2fb6dba9fc848cba041d051f8 Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Sun, 9 Oct 2011 23:35:48 +0800 Subject: [PATCH] Update README example Signed-off-by: Liu, Jinsong jinsong@intel.com Signed-off

RE: KVM: emulate lapic tsc deadline timer for guest

2011-10-05 Thread Liu, Jinsong
Yes, Avi has noticed this issue and fix the bug as attached. Thanks, Jinsong Dan Carpenter wrote: This patch causes a NULL dereference for me when I start qemu. [ 136.130978] BUG: unable to handle kernel NULL pointer dereference at 0078 [ 136.131032] IP: [a015a3d3]

RE: [PATCH] KVM: emulate lapic tsc deadline timer for guest

2011-10-05 Thread Liu, Jinsong
Marcelo Tosatti wrote: On Sun, Sep 25, 2011 at 10:47:46PM +0800, Liu, Jinsong wrote: Marcelo Tosatti wrote: On Fri, Sep 23, 2011 at 04:25:51PM +0800, Liu, Jinsong wrote: Marcelo Tosatti wrote: On Thu, Sep 22, 2011 at 04:55:52PM +0800, Liu, Jinsong wrote: From

Qemu co-operation with kvm tsc deadline timer

2011-09-25 Thread Liu, Jinsong
From 7b58c09d1bb70c7ca8aa29892b08ba4a3e7b9e92 Mon Sep 17 00:00:00 2001 From: Liu Jinsong jinsong@intel.com Date: Sun, 25 Sep 2011 15:48:29 +0800 Subject: [PATCH] Qemu co-operation with kvm tsc deadline timer KVM add emulation of lapic tsc deadline timer for guest. This patch is co-operation

RE: [PATCH] KVM: emulate lapic tsc deadline timer for guest

2011-09-25 Thread Liu, Jinsong
Marcelo Tosatti wrote: On Fri, Sep 23, 2011 at 04:25:51PM +0800, Liu, Jinsong wrote: Marcelo Tosatti wrote: On Thu, Sep 22, 2011 at 04:55:52PM +0800, Liu, Jinsong wrote: From 4d5b83aba40ce0d421add9a41a6c591a8590a32e Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Thu

RE: [PATCH] KVM: emulate lapic tsc deadline timer for guest

2011-09-23 Thread Liu, Jinsong
Marcelo Tosatti wrote: On Thu, Sep 22, 2011 at 04:55:52PM +0800, Liu, Jinsong wrote: From 4d5b83aba40ce0d421add9a41a6c591a8590a32e Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Thu, 22 Sep 2011 14:00:08 +0800 Subject: [PATCH 2/2] KVM: emulate lapic tsc deadline

[PATCH] Add some pre-defination

2011-09-22 Thread Liu, Jinsong
From cab4eb79efc498abbda19c5b10c7d0858349af5f Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Thu, 22 Sep 2011 09:49:05 +0800 Subject: [PATCH 1/2] Add some pre-defination This pre-defination is preparing for KVM tsc deadline timer emulation, but theirself are no-kvm

[PATCH] KVM: emulate lapic tsc deadline timer for guest

2011-09-22 Thread Liu, Jinsong
From 4d5b83aba40ce0d421add9a41a6c591a8590a32e Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Thu, 22 Sep 2011 14:00:08 +0800 Subject: [PATCH 2/2] KVM: emulate lapic tsc deadline timer for guest This patch emulate lapic tsc deadline timer for guest: Enumerate tsc deadline

[PATCH] Qemu co-operation with kvm tsc deadline timer

2011-09-22 Thread Liu, Jinsong
From 8c39f2ddbf7069342826a83e535c0c7b641d6501 Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Thu, 22 Sep 2011 16:28:13 +0800 Subject: [PATCH] Qemu co-operation with kvm tsc deadline timer KVM add emulation of lapic tsc deadline timer for guest. This patch is co-operation

RE: [PATCH] KVM: emulate lapic tsc deadline timer for guest

2011-09-22 Thread Liu, Jinsong
Marcelo Tosatti wrote: On Thu, Sep 22, 2011 at 04:55:52PM +0800, Liu, Jinsong wrote: From 4d5b83aba40ce0d421add9a41a6c591a8590a32e Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Thu, 22 Sep 2011 14:00:08 +0800 Subject: [PATCH 2/2] KVM: emulate lapic tsc deadline

RE: [PATCH 1/2] KVM: emulate lapic tsc deadline timer for guest

2011-09-15 Thread Liu, Jinsong
Marcelo Tosatti wrote: diff --git a/arch/x86/include/asm/apicdef.h b/arch/x86/include/asm/apicdef.h index 34595d5..3925d80 100644 --- a/arch/x86/include/asm/apicdef.h +++ b/arch/x86/include/asm/apicdef.h @@ -100,7 +100,9 @@ #define APIC_TIMER_BASE_CLKIN 0x0 #define

RE: [PATCH 1/2] KVM: emulate lapic tsc deadline timer for guest

2011-09-15 Thread Liu, Jinsong
Marcelo Tosatti wrote: +} else if (apic_lvtt_tscdeadline(apic)) { +/* lapic timer in tsc deadline mode */ +u64 guest_tsc, guest_tsc_delta, ns = 0; +struct kvm_vcpu *vcpu = apic-vcpu; +unsigned long this_tsc_khz = vcpu_tsc_khz(vcpu); +

[PATCH 1/2] KVM: emulate lapic tsc deadline timer for guest

2011-09-13 Thread Liu, Jinsong
From 7b12021e1d1b79797b49e41cc0a7be05a6180d9a Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Tue, 13 Sep 2011 21:52:54 +0800 Subject: [PATCH] KVM: emulate lapic tsc deadline timer for guest This patch emulate lapic tsc deadline timer for guest: Enumerate tsc deadline

[PATCH 2/2] Qemu co-operation with kvm tsc deadline timer

2011-09-13 Thread Liu, Jinsong
From c1b502d6548fcc41592cd90acc82109ee949df75 Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Tue, 13 Sep 2011 22:05:30 +0800 Subject: [PATCH] Qemu co-operation with kvm tsc deadline timer KVM add emulation of lapic tsc deadline timer for guest. This patch is co-operation

RE: [PATCH 2/2] Qemu co-operation with kvm tsc deadline timer

2011-09-13 Thread Liu, Jinsong
Jan Kiszka wrote: On 2011-09-13 16:38, Liu, Jinsong wrote: From c1b502d6548fcc41592cd90acc82109ee949df75 Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Tue, 13 Sep 2011 22:05:30 +0800 Subject: [PATCH] Qemu co-operation with kvm tsc deadline timer KVM add

RE: [PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-09-09 Thread Liu, Jinsong
Marcelo Tosatti wrote: On Fri, Sep 09, 2011 at 01:12:51AM +0800, Liu, Jinsong wrote: --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -229,6 +229,8 @@ #define MSR_IA32_APICBASE_ENABLE (111) #define MSR_IA32_APICBASE_BASE (0xf12) +#define

RE: [PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-09-09 Thread Liu, Jinsong
Marcelo Tosatti wrote: On Fri, Sep 09, 2011 at 01:12:51AM +0800, Liu, Jinsong wrote: --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -229,6 +229,8 @@ #define MSR_IA32_APICBASE_ENABLE (111) #define MSR_IA32_APICBASE_BASE (0xf12) +#define

RE: [PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-09-09 Thread Liu, Jinsong
My question is, which kvm_get_msrs/kvm_put_msrs routine be used by live migration, the routine in target-i386/kvm.c, or in kvm/libkvm/libkvm-x86.c? They both have ioctl KVM_GET_MSR_INDEX_LIST/ KVM_GET_MSRS/ KVM_SET_MSRS, but I'm not clear their purpose/usage difference.

RE: [PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-09-08 Thread Liu, Jinsong
--- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -229,6 +229,8 @@ #define MSR_IA32_APICBASE_ENABLE (111) #define MSR_IA32_APICBASE_BASE (0xf12) +#define MSR_IA32_TSCDEADLINE 0x06e0 + #define MSR_IA32_UCODE_WRITE

RE: [PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-09-07 Thread Liu, Jinsong
Avi Kivity wrote: --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -229,6 +229,8 @@ #define MSR_IA32_APICBASE_ENABLE (111) #define MSR_IA32_APICBASE_BASE (0xf12) +#define MSR_IA32_TSCDEADLINE0x06e0 + #define

RE: [PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-09-07 Thread Liu, Jinsong
Avi Kivity wrote: On 09/07/2011 07:45 PM, Liu, Jinsong wrote: Avi Kivity wrote: --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -229,6 +229,8 @@ #define MSR_IA32_APICBASE_ENABLE(111) #define MSR_IA32_APICBASE_BASE (0xf12

RE: [PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-09-06 Thread Liu, Jinsong
Thanks Avi, Marcelo, Kevin for comments, sorry for late reply (just come back from vacation). Avi Kivity wrote: On 08/17/2011 07:19 AM, Liu, Jinsong wrote: From a9670ddff84080c56183e2d678189e100f891174 Mon Sep 17 00:00:00 2001 From: Liu, Jinsongjinsong@intel.com Date: Wed, 17 Aug

RE: [PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-09-06 Thread Liu, Jinsong
Marcelo Tosatti wrote: --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -229,6 +229,8 @@ #define MSR_IA32_APICBASE_ENABLE (111) #define MSR_IA32_APICBASE_BASE (0xf12) +#define MSR_IA32_TSCDEADLINE 0x06e0 + #define

[PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-08-16 Thread Liu, Jinsong
From a9670ddff84080c56183e2d678189e100f891174 Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Wed, 17 Aug 2011 11:36:28 +0800 Subject: [PATCH] KVM: emulate lapic tsc deadline timer for hvm This patch emulate lapic tsc deadline timer for hvm: Enumerate tsc deadline timer

RE: [PATCH] Fix bug for vcpu hotplug

2010-08-18 Thread Liu, Jinsong
Avi Kivity wrote: On 08/06/2010 06:36 AM, Liu, Jinsong wrote: Recently seabios implement vcpu hotplug infrastructure. During test, we found qemu-kvm has a bug result in guestos shutdown when vcpu hotadd. This patch is to fix the bug, mark bus-allow_hotplug as 1 after qdev_hotplug init done

[PATCH] Fix bug for vcpu hotplug

2010-08-05 Thread Liu, Jinsong
Recently seabios implement vcpu hotplug infrastructure. During test, we found qemu-kvm has a bug result in guestos shutdown when vcpu hotadd. This patch is to fix the bug, mark bus-allow_hotplug as 1 after qdev_hotplug init done. Signed-off-by: Liu, Jinsong jinsong@intel.com fix-vcpu

RE: Alt SeaBIOS SSDT cpu hotplug

2010-08-05 Thread Liu, Jinsong
Kevin O'Connor wrote: On Tue, Aug 03, 2010 at 05:00:49PM +0800, Liu, Jinsong wrote: I just test your new patch with Windows 2008 DataCenter at my platform, it works OK! We can hot-add new cpus and they appear at Device Manager. (BTW, yesterday I test your new patch with linux 2.6.32 hvm

RE: Alt SeaBIOS SSDT cpu hotplug

2010-08-03 Thread Liu, Jinsong
. Thanks Regards, Shaohui -Original Message- From: Kevin O'Connor [mailto:ke...@koconnor.net] Sent: Tuesday, August 03, 2010 1:27 AM To: Avi Kivity Cc: Alexander Graf; Liu, Jinsong; seab...@seabios.org; kvm@vger.kernel.org; Jiang, Yunhong; Li, Xin; Zheng, Shaohui; Zhang, Jianwu

RE: Alt SeaBIOS SSDT cpu hotplug

2010-08-01 Thread Liu, Jinsong
Kevin, This patch still has issue, It can boot Windows 2008 DataCenter, however, when run cpu_set cpu online command, windows 2008 Datacenter system shutdown at once. Thanks, Jinsong Sorry about that. It looks like I messed up the SSDT ScopeOp length. New patch attached below. I've

RE: Alt SeaBIOS SSDT cpu hotplug

2010-07-30 Thread Liu, Jinsong
Liu, Jinsong wrote: Kevin O'Connor wrote: On Sat, Jul 10, 2010 at 12:41:18AM +0800, Liu, Jinsong wrote: Kevin O'Connor wrote: On Thu, Jul 08, 2010 at 09:19:13PM +0800, Liu, Jinsong wrote: Avi Kivity wrote: Very nice. I thought about doing this but abandoned it as unmaintainable. Using

RE: Alt SeaBIOS SSDT cpu hotplug

2010-07-24 Thread Liu, Jinsong
Kevin O'Connor wrote: On Sat, Jul 10, 2010 at 12:41:18AM +0800, Liu, Jinsong wrote: Kevin O'Connor wrote: On Thu, Jul 08, 2010 at 09:19:13PM +0800, Liu, Jinsong wrote: Avi Kivity wrote: Very nice. I thought about doing this but abandoned it as unmaintainable. Using external functions

RE: Alt SeaBIOS SSDT cpu hotplug

2010-07-09 Thread Liu, Jinsong
Kevin O'Connor wrote: On Thu, Jul 08, 2010 at 09:19:13PM +0800, Liu, Jinsong wrote: Avi Kivity wrote: Very nice. I thought about doing this but abandoned it as unmaintainable. Using external functions and the ID variable, however, reduces the mess to tolerable proportions, and gains us

RE: Alt SeaBIOS SSDT cpu hotplug

2010-07-08 Thread Liu, Jinsong
Avi Kivity wrote: On 07/07/2010 07:57 AM, Kevin O'Connor wrote: Hi, I've been playing with the cpu hotplug SSDT changes. Attached is a proposal for an alternative method of adding ACPI support. The idea is to continue to build a dynamic SSDT based on CountCPUs and MaxCountCPUs. The

RE: [PATCH] Setup vcpu add/remove infrastructure, including madt bios_info and dsdt.

2010-01-22 Thread Liu, Jinsong
Gleb Natapov wrote: On Fri, Jan 22, 2010 at 05:08:32PM +0800, Liu, Jinsong wrote: Gleb Natapov wrote: On Fri, Jan 22, 2010 at 10:15:44AM +0800, Liu, Jinsong wrote: Gleb Natapov wrote: On Thu, Jan 21, 2010 at 07:48:23PM +0800, Liu, Jinsong wrote: From cb997030cba02e7e74a29b3d942aeba9808ed293

RE: [PATCH] Setup vcpu add/remove infrastructure, including madt bios_info and dsdt.

2010-01-22 Thread Liu, Jinsong
Gleb Natapov wrote: On Fri, Jan 22, 2010 at 06:54:42PM +0800, Liu, Jinsong wrote: Gleb Natapov wrote: On Fri, Jan 22, 2010 at 05:08:32PM +0800, Liu, Jinsong wrote: Gleb Natapov wrote: On Fri, Jan 22, 2010 at 10:15:44AM +0800, Liu, Jinsong wrote: Gleb Natapov wrote: On Thu, Jan 21, 2010

RE: [PATCH] Setup vcpu add/remove infrastructure, including madt bios_info and dsdt.

2010-01-22 Thread Liu, Jinsong
Gleb Natapov wrote: On Fri, Jan 22, 2010 at 10:52:29PM +0800, Liu, Jinsong wrote: Gleb Natapov wrote: On Fri, Jan 22, 2010 at 06:54:42PM +0800, Liu, Jinsong wrote: Gleb Natapov wrote: On Fri, Jan 22, 2010 at 05:08:32PM +0800, Liu, Jinsong wrote: Gleb Natapov wrote: On Fri, Jan 22, 2010

[PATCH] Setup vcpu add/remove infrastructure, including madt bios_info and dsdt.

2010-01-21 Thread Liu, Jinsong
From cb997030cba02e7e74a29b3d942aeba9808ed293 Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Fri, 22 Jan 2010 03:18:46 +0800 Subject: [PATCH] Setup vcpu add/remove infrastructure, including madt bios_info and dsdt. 1. setup madt bios_info structure, so

[PATCH] Debug vcpu add

2010-01-21 Thread Liu, Jinsong
From 479e84d9ce9d7d78d845f438071a4b1a44aca0bb Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Fri, 22 Jan 2010 03:30:33 +0800 Subject: [PATCH] Debug vcpu add Add 'kvm_vcpu_inited' check so that when adding vcpu it will not cause segmentation fault

vcpu hotplug support

2010-01-21 Thread Liu, Jinsong
Avi, I just send 2 patches for KVM vcpu hotplug support. 1 is seabios patch: Setup vcpu add/remove infrastructure, including madt bios_info and dsdt 2 is qemu-kvm patch: Debug vcpu add Thanks, Jinsong-- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to

RE: vcpu hotplug support

2010-01-21 Thread Liu, Jinsong
Avi Kivity wrote: On 01/21/2010 01:54 PM, Liu, Jinsong wrote: Avi, I just send 2 patches for KVM vcpu hotplug support. 1 is seabios patch: Setup vcpu add/remove infrastructure, including madt bios_info and dsdt 2 is qemu-kvm patch: Debug vcpu add The patches look reasonable

RE: [PATCH] Setup vcpu add/remove infrastructure, including madt bios_info and dsdt.

2010-01-21 Thread Liu, Jinsong
Gleb Natapov wrote: On Thu, Jan 21, 2010 at 07:48:23PM +0800, Liu, Jinsong wrote: From cb997030cba02e7e74a29b3d942aeba9808ed293 Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Fri, 22 Jan 2010 03:18:46 +0800 Subject: [PATCH] Setup vcpu add/remove

seabios question

2009-12-16 Thread Liu, Jinsong
Hi, Avi Recently I want to update hvm vcpu add/remove feature of KVM. I go through qemu-kvm, find that original boch vbios code (i.e, qemu-kvm/kvm/bios/acpi-dsdt.asl, ...) has been removed. Now qemu-kvm use seabios git repo http://git.kernel.org/?p=virt/kvm/seabios.git;a=summary as its vbios,

RE: seabios question

2009-12-16 Thread Liu, Jinsong
Avi Kivity wrote: On 12/16/2009 12:55 PM, Liu, Jinsong wrote: Hi, Avi Recently I want to update hvm vcpu add/remove feature of KVM. I go through qemu-kvm, find that original boch vbios code (i.e, qemu-kvm/kvm/bios/acpi-dsdt.asl, ...) has been removed. Now qemu-kvm use seabios git repo

RE: seabios question

2009-12-16 Thread Liu, Jinsong
Gleb Natapov wrote: On Wed, Dec 16, 2009 at 06:55:47PM +0800, Liu, Jinsong wrote: Hi, Avi Recently I want to update hvm vcpu add/remove feature of KVM. I go through qemu-kvm, find that original boch vbios code (i.e, qemu-kvm/kvm/bios/acpi-dsdt.asl, ...) has been removed. Now qemu-kvm

<    1   2