[PATCH] target-i386: Allow changing of Hypervisor CPUIDs.

2012-08-30 Thread Don Slutz
what the guest sees. Signed-off-by: Don Slutz --- target-i386/cpu.c | 178 + target-i386/cpu.h |9 +++ target-i386/kvm.c | 33 -- 3 files changed, 214 insertions(+), 6 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c

[PATCH] target-i386: Allow changing of Hypervisor CPUIDs.

2012-08-30 Thread Don Slutz
what the guest sees. Signed-off-by: Don Slutz --- target-i386/cpu.c | 178 + target-i386/cpu.h |9 +++ target-i386/kvm.c | 33 -- 3 files changed, 214 insertions(+), 6 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c

[PATCH] target-i386: Allow changing of Hypervisor CPUIDs.

2012-08-30 Thread Don Slutz
what the guest sees. Signed-off-by: Don Slutz --- target-i386/cpu.c | 178 + target-i386/cpu.h |9 +++ target-i386/kvm.c | 33 -- 3 files changed, 214 insertions(+), 6 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c

[PATCH] target-i386: Allow changing of Hypervisor CPUIDs.

2012-08-30 Thread Don Slutz
what the guest sees. Signed-off-by: Don Slutz --- target-i386/cpu.c | 178 + target-i386/cpu.h |9 +++ target-i386/kvm.c | 33 -- 3 files changed, 214 insertions(+), 6 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c

Re: [SeaBIOS] [PATCH v2] add acpi pmtimer support

2012-09-05 Thread Don Slutz
__ SeaBIOS mailing list seab...@seabios.org http://www.seabios.org/mailman/listinfo/seabios -Don Slutz -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [Qemu-devel] [PATCH] target-i386: Allow changing of Hypervisor CPUIDs.

2012-09-06 Thread Don Slutz
On 09/06/12 14:40, Eduardo Habkost wrote: On Thu, Sep 06, 2012 at 12:28:05PM +0200, Andreas Färber wrote: Am 30.08.2012 21:20, schrieb Don Slutz: This is primarily done so that the guest will think it is running under vmware when hypervisor=vmware is specified as a property of a cpu. Also

Re: [PATCH] target-i386: Allow changing of Hypervisor CPUIDs.

2012-09-11 Thread Don Slutz
On 09/05/12 12:48, Marcelo Tosatti wrote: On Thu, Aug 30, 2012 at 03:20:35PM -0400, Don Slutz wrote: This is primarily done so that the guest will think it is running under vmware when hypervisor=vmware is specified as a property of a cpu. Also allow this to work in accel=tcg mode. The new

[PATCH v2 0/4] Allow changing of Hypervisor CPUIDs.

2012-09-11 Thread Don Slutz
-- The split out of the code that is not needed for accel=kvm. Don Slutz (4): target-i386: Allow tsc-frequency to be larger then 2.147G target-i386: Add missing kvm bits. target-i386: Allow changing of Hypervisor CPUIDs. target-i386: Add Hypervisor CPUIDs in accel=tcg mode. target-i386

[PATCH v2 1/4] target-i386: Allow tsc-frequency to be larger then 2.147G

2012-09-11 Thread Don Slutz
The check using INT_MAX (2147483647) is wrong in this case. Signed-off-by: Fred Oliveira Signed-off-by: Don Slutz --- target-i386/cpu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index af50a8f..0313cf5 100644 --- a/target

[PATCH v2 2/4] target-i386: Add missing kvm bits.

2012-09-11 Thread Don Slutz
Fix duplicate name (kvmclock => kvm_clock2) also. Signed-off-by: Don Slutz --- target-i386/cpu.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 0313cf5..5f9866a 100644 --- a/target-i386/cpu.c +++ b/target-i

[PATCH v2 3/4] target-i386: Allow changing of Hypervisor CPUIDs.

2012-09-11 Thread Don Slutz
This is primarily done so that the guest will think it is running under vmware when hypervisor-vendor=vmware is specified as a property of a cpu. Signed-off-by: Don Slutz --- target-i386/cpu.c | 214 + target-i386/cpu.h | 21 + target

[PATCH v2 4/4] target-i386: Add Hypervisor CPUIDs in accel=tcg mode.

2012-09-11 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.c | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 9f1f390..89a45b5 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1815,6 +1815,16 @@ void

Re: [PATCH v2 3/4] target-i386: Allow changing of Hypervisor CPUIDs.

2012-09-13 Thread Don Slutz
t;, or what a lot of Linux version look at to determine the Hypervisor they are on, or something else? On Tue, Sep 11, 2012 at 10:07:46AM -0400, Don Slutz wrote: This is primarily done so that the guest will think it is running under vmware when hypervisor-vendor=vmware is specified as a property o

[PATCH v3 00/17] Allow changing of Hypervisor CPUIDs.

2012-09-17 Thread Don Slutz
patches (with better changelog). This would help reviewers. So split 3 and 4 into 3 to 17. More info in change log. No code change. Don Slutz (17): target-i386: Allow tsc-frequency to be larger then 2.147G target-i386: Add missing kvm bits. target-i386: Add Hypervisor level. target-i

[PATCH v3 00/17] *** SUBJECT HERE ***

2012-09-17 Thread Don Slutz
*** BLURB HERE *** Don Slutz (17): target-i386: Allow tsc-frequency to be larger then 2.147G target-i386: Add missing kvm bits. target-i386: Add Hypervisor level. target-i386: Add cpu object access routines for Hypervisor level. target-i386: Add x86_set_hyperv. target-i386: Use

[PATCH v3 00/17] Allow changing of Hypervisor CPUIDs.

2012-09-17 Thread Don Slutz
patches (with better changelog). This would help reviewers. So split 3 and 4 into 3 to 17. More info in change log. No code change. Don Slutz (17): target-i386: Allow tsc-frequency to be larger then 2.147G target-i386: Add missing kvm bits. target-i386: Add Hypervisor level. target-i

[PATCH v3 03/17] target-i386: Add Hypervisor level.

2012-09-17 Thread Don Slutz
on CPUIDs (Mechanisms to determine if software is running in a VMware virtual machine): http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 QEMU has the value HYPERV_CPUID_MIN defined. Signed-off-by: Don Slutz --- target-i386/cpu.h |

[PATCH v3 08/17] target-i386: Add Hypervisor vendor.

2012-09-17 Thread Don Slutz
/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 Signed-off-by: Don Slutz --- target-i386/cpu.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 05c0848..53ba4cf 100644 --- a/target-i386/cpu

[PATCH v3 10/17] target-i386: Use Hypervisor vendor in -machine pc,accel=kvm.

2012-09-17 Thread Don Slutz
d-off-by: Don Slutz --- target-i386/kvm.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index bf27793..b8789f2 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -392,13 +392,15 @@ int kvm_arch_init_vcpu(CPUX86St

[PATCH v3 11/17] target-i386: Use Hypervisor vendor in -machine pc,accel=tcg.

2012-09-17 Thread Don Slutz
d-off-by: Don Slutz --- target-i386/cpu.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 5afb188..1b3a472 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1842,9 +1842,9 @@ void cpu_x86_cpuid(CPUX86State *env,

[PATCH v3 17/17] target-i386: Use Hypervisor leaf extra in -machine pc,accel=tcg.

2012-09-17 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index bfaee02..89a45b5 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1975,6 +1975,17 @@ void cpu_x86_cpuid

[PATCH v3 15/17] target-i386: Add setting of Hypervisor leaf extra for known vmare4.

2012-09-17 Thread Don Slutz
This was taken from: http://article.gmane.org/gmane.comp.emulators.kvm.devel/22643 Signed-off-by: Don Slutz --- target-i386/cpu.c | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 34d2291

[PATCH v3 11/17] target-i386: Use Hypervisor vendor in -machine pc,accel=tcg.

2012-09-17 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 5afb188..1b3a472 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1842,9 +1842,9 @@ void cpu_x86_cpuid(CPUX86State

[PATCH v3 14/17] target-i386: Add cpu object access routines for Hypervisor leaf extra.

2012-09-17 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.c | 66 + 1 files changed, 66 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 9ac3076..34d2291 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c

[PATCH v3 16/17] target-i386: Use Hypervisor leaf extra in -machine pc,accel=kvm.

2012-09-17 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/kvm.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index b8789f2..17c72bc 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -454,6 +454,25 @@ int

[PATCH v3 08/17] target-i386: Add Hypervisor vendor.

2012-09-17 Thread Don Slutz
on CPUIDs (Mechanisms to determine if software is running in a VMware virtual machine): http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 Signed-off-by: Don Slutz --- target-i386/cpu.h |3 +++ 1 files changed, 3 insertions(+), 0 d

[PATCH v3 13/17] target-i386: Add optional Hypervisor leaf extra.

2012-09-17 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 47bc00c..a2d3588 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -799,6 +799,10 @@ typedef struct CPUX86State

[PATCH v3 12/17] target-i386: Add some known names to Hypervisor vendor.

2012-09-17 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.c | 36 +++- target-i386/cpu.h | 12 2 files changed, 47 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 1b3a472..9ac3076 100644 --- a/target-i386/cpu.c +++ b

[PATCH v3 10/17] target-i386: Use Hypervisor vendor in -machine pc,accel=kvm.

2012-09-17 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/kvm.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index bf27793..b8789f2 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -392,13 +392,15 @@ int kvm_arch_init_vcpu

[PATCH v3 05/17] target-i386: Add x86_set_hyperv.

2012-09-17 Thread Don Slutz
This is used to set the cpu object's hypervisor level to the default for Microsoft's Hypervisor. Signed-off-by: Don Slutz --- target-i386/cpu.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 0e4a18d..4120

[PATCH v3 09/17] target-i386: Add cpu object access routines for Hypervisor vendor.

2012-09-17 Thread Don Slutz
These are modeled after x86_cpuid_set_vendor and x86_cpuid_get_vendor. Since kvm's vendor is shorter, the test for correct size is removed and zero padding is added. Signed-off-by: Don Slutz --- target-i386/cpu.c | 44 1 files change

[PATCH v3 07/17] target-i386: Use Hypervisor level in -machine pc,accel=tcg.

2012-09-17 Thread Don Slutz
This does not provide vendor support in tcg yet. Signed-off-by: Don Slutz --- target-i386/cpu.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 4120393..d3b9bd8 100644 --- a/target-i386/cpu.c +++ b/target

[PATCH v3 07/17] target-i386: Use Hypervisor level in -machine pc,accel=tcg.

2012-09-17 Thread Don Slutz
ows this is KVM_CPUID_SIGNATURE (0x4000). This does not provide vendor support in tcg yet. Signed-off-by: Don Slutz --- target-i386/cpu.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 4120393..d3b9bd

[PATCH v3 01/17] target-i386: Allow tsc-frequency to be larger then 2.147G

2012-09-17 Thread Don Slutz
The check using INT_MAX (2147483647) is wrong in this case. Signed-off-by: Fred Oliveira Signed-off-by: Don Slutz --- target-i386/cpu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index af50a8f..0313cf5 100644 --- a/target

[PATCH v3 04/17] target-i386: Add cpu object access routines for Hypervisor level.

2012-09-17 Thread Don Slutz
These are modeled after x86_cpuid_get_xlevel and x86_cpuid_set_xlevel. Signed-off-by: Don Slutz --- target-i386/cpu.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 5f9866a..0e4a18d 100644 --- a

[PATCH v3 06/17] target-i386: Use Hypervisor level in -machine pc,accel=kvm.

2012-09-17 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/kvm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 895d848..bf27793 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -389,12 +389,12 @@ int kvm_arch_init_vcpu(CPUX86State

[PATCH v3 06/17] target-i386: Use Hypervisor level in -machine pc,accel=kvm.

2012-09-17 Thread Don Slutz
ows this is KVM_CPUID_SIGNATURE (0x4000). Signed-off-by: Don Slutz --- target-i386/kvm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 895d848..bf27793 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -389,12

[PATCH v3 03/17] target-i386: Add Hypervisor level.

2012-09-17 Thread Don Slutz
virtual machine): http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 QEMU has the value HYPERV_CPUID_MIN defined. Signed-off-by: Don Slutz --- target-i386/cpu.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[PATCH v3 02/17] target-i386: Add missing kvm bits.

2012-09-17 Thread Don Slutz
Fix duplicate name (kvmclock => kvm_clock2) also. Signed-off-by: Don Slutz --- target-i386/cpu.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 0313cf5..5f9866a 100644 --- a/target-i386/cpu.c +++ b/target-i

Re: [PATCH v3 00/17] *** SUBJECT HERE ***

2012-09-17 Thread Don Slutz
forgot to delete the backup versions. :( -Don On 09/17/12 09:39, Don Slutz wrote: *** BLURB HERE *** Don Slutz (17): target-i386: Allow tsc-frequency to be larger then 2.147G target-i386: Add missing kvm bits. target-i386: Add Hypervisor level. target-i386: Add cpu object access

Re: [PATCH v3 00/17] *** SUBJECT HERE ***

2012-09-17 Thread Don Slutz
On 09/17/12 09:49, Don Slutz wrote: forgot to delete the backup versions. :( -Don On 09/17/12 09:39, Don Slutz wrote: Here is the planned cover letter: From 7c0a80d8e870da981786b7235d3a968024c89abb Mon Sep 17 00:00:00 2001 In-Reply-To: <1346354435-21685-1-git-send-email-...@cloudswitch.

[PATCH v2] target-i386: Report on error during cpu_x86_register().

2012-09-17 Thread Don Slutz
Send it to stderr before free of the details. Signed-off-by: Don Slutz --- v2: Change __FUNCTION__ to __func__ target-i386/cpu.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 57c064f..760cca4 100644 --- a/target-i386/cpu.c

[PATCH v3 00/17] Allow changing of Hypervisor CPUIDs.

2012-09-17 Thread Don Slutz
i: Its one big patch, better split in logically correlated patches (with better changelog). This would help reviewers. So split 3 and 4 into 3 to 17. More info in change log. No code change. Don Slutz (17): target-i386: Allow tsc-frequency to be larger then 2.147G target-i386: Add missing

[PATCH v3 01/17] target-i386: Allow tsc-frequency to be larger then 2.147G

2012-09-17 Thread Don Slutz
The check using INT_MAX (2147483647) is wrong in this case. Signed-off-by: Fred Oliveira Signed-off-by: Don Slutz --- target-i386/cpu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index af50a8f..0313cf5 100644 --- a/target

[PATCH v3 02/17] target-i386: Add missing kvm bits.

2012-09-17 Thread Don Slutz
Fix duplicate name (kvmclock => kvm_clock2) also. Signed-off-by: Don Slutz --- target-i386/cpu.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 0313cf5..5f9866a 100644 --- a/target-i386/cpu.c +++ b/target-i

[PATCH v3 03/17] target-i386: Add Hypervisor level.

2012-09-17 Thread Don Slutz
virtual machine): http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 QEMU has the value HYPERV_CPUID_MIN defined. Signed-off-by: Don Slutz --- target-i386/cpu.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[PATCH v3 04/17] target-i386: Add cpu object access routines for Hypervisor level.

2012-09-17 Thread Don Slutz
These are modeled after x86_cpuid_get_xlevel and x86_cpuid_set_xlevel. Signed-off-by: Don Slutz --- target-i386/cpu.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 5f9866a..0e4a18d 100644 --- a

[PATCH v3 05/17] target-i386: Add x86_set_hyperv.

2012-09-17 Thread Don Slutz
This is used to set the cpu object's hypervisor level to the default for Microsoft's Hypervisor. Signed-off-by: Don Slutz --- target-i386/cpu.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 0e4a18d..4120

[PATCH v3 06/17] target-i386: Use Hypervisor level in -machine pc,accel=kvm.

2012-09-17 Thread Don Slutz
ows this is KVM_CPUID_SIGNATURE (0x4000). Signed-off-by: Don Slutz --- target-i386/kvm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 895d848..bf27793 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -389,12

[PATCH v3 07/17] target-i386: Use Hypervisor level in -machine pc,accel=tcg.

2012-09-17 Thread Don Slutz
ows this is KVM_CPUID_SIGNATURE (0x4000). This does not provide vendor support in tcg yet. Signed-off-by: Don Slutz --- target-i386/cpu.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 4120393..d3b9bd

[PATCH v3 08/17] target-i386: Add Hypervisor vendor.

2012-09-17 Thread Don Slutz
/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 Signed-off-by: Don Slutz --- target-i386/cpu.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 05c0848..53ba4cf 100644 --- a/target-i386/cpu

[PATCH v3 09/17] target-i386: Add cpu object access routines for Hypervisor vendor.

2012-09-17 Thread Don Slutz
These are modeled after x86_cpuid_set_vendor and x86_cpuid_get_vendor. Since kvm's vendor is shorter, the test for correct size is removed and zero padding is added. Signed-off-by: Don Slutz --- target-i386/cpu.c | 44 1 files change

[PATCH v3 10/17] target-i386: Use Hypervisor vendor in -machine pc,accel=kvm.

2012-09-17 Thread Don Slutz
d-off-by: Don Slutz --- target-i386/kvm.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index bf27793..b8789f2 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -392,13 +392,15 @@ int kvm_arch_init_vcpu(CPUX86St

[PATCH v3 11/17] target-i386: Use Hypervisor vendor in -machine pc,accel=tcg.

2012-09-17 Thread Don Slutz
d-off-by: Don Slutz --- target-i386/cpu.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 5afb188..1b3a472 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1842,9 +1842,9 @@ void cpu_x86_cpuid(CPUX86State *env,

[PATCH v3 12/17] target-i386: Add some known names to Hypervisor vendor.

2012-09-17 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.c | 36 +++- target-i386/cpu.h | 12 2 files changed, 47 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 1b3a472..9ac3076 100644 --- a/target-i386/cpu.c +++ b

[PATCH v3 13/17] target-i386: Add optional Hypervisor leaf extra.

2012-09-17 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 47bc00c..a2d3588 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -799,6 +799,10 @@ typedef struct CPUX86State

[PATCH v3 14/17] target-i386: Add cpu object access routines for Hypervisor leaf extra.

2012-09-17 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.c | 66 + 1 files changed, 66 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 9ac3076..34d2291 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c

[PATCH v3 15/17] target-i386: Add setting of Hypervisor leaf extra for known vmare4.

2012-09-17 Thread Don Slutz
This was taken from: http://article.gmane.org/gmane.comp.emulators.kvm.devel/22643 Signed-off-by: Don Slutz --- target-i386/cpu.c | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 34d2291

Re: [PATCH v2] target-i386: Report on error during cpu_x86_register().

2012-09-17 Thread Don Slutz
On 09/17/12 10:00, Don Slutz wrote: Send it to stderr before free of the details. Signed-off-by: Don Slutz --- v2: Change __FUNCTION__ to __func__ target-i386/cpu.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 57c064f

[PATCH v3 17/17] target-i386: Use Hypervisor leaf extra in -machine pc,accel=tcg.

2012-09-17 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index bfaee02..89a45b5 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1975,6 +1975,17 @@ void cpu_x86_cpuid

[PATCH v3 16/17] target-i386: Use Hypervisor leaf extra in -machine pc,accel=kvm.

2012-09-17 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/kvm.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index b8789f2..17c72bc 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -454,6 +454,25 @@ int

[PATCH 0/2] target-i386: Fix default Hypervisor level for kvm

2012-09-18 Thread Don Slutz
. (From http://lists.gnu.org/archive/html/qemu-devel/2012-09/msg02639.html) [1] https://github.com/ehabkost/qemu/commits/cpu-queue My branch is now based on Andreas's qom-cpu branch from https://github.com/afaerber/qemu-cpu/commits/qom-cpu Don Slutz (2): target-i386: Fix default Hyper

[PATCH 1/2] target-i386: Fix default Hypervisor level for accel=kvm.

2012-09-18 Thread Don Slutz
>From http://lkml.indiana.edu/hypermail/linux/kernel/1205.0/00100.html EAX should be KVM_CPUID_FEATURES (0x4001) not 0. --- target-i386/kvm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 761a9b1..0c9f5dd 100644 --- a/targ

[PATCH 2/2] target-i386: Fix default Hypervisor level for hypervisor-vendor=kvm.

2012-09-18 Thread Don Slutz
>From http://lkml.indiana.edu/hypermail/linux/kernel/1205.0/00100.html EAX should be KVM_CPUID_FEATURES (0x4001) not 0. If kvm is not configured, the additional option of hypervisor-level=1 (or hypervisor-level=0x4001) needs to be specified to get this. --- target-i386/cpu.c | 12 ++

Re: [PATCH 2/2] target-i386: Fix default Hypervisor level for hypervisor-vendor=kvm.

2012-09-18 Thread Don Slutz
On 09/18/12 13:00, Eduardo Habkost wrote: On Tue, Sep 18, 2012 at 10:49:53AM -0400, Don Slutz wrote: From http://lkml.indiana.edu/hypermail/linux/kernel/1205.0/00100.html EAX should be KVM_CPUID_FEATURES (0x4001) not 0. If kvm is not configured, the additional option of hypervisor-level=1

Re: [PATCH 1/2] target-i386: Fix default Hypervisor level for accel=kvm.

2012-09-18 Thread Don Slutz
On 09/18/12 11:05, Eduardo Habkost wrote: On Tue, Sep 18, 2012 at 10:49:52AM -0400, Don Slutz wrote: From http://lkml.indiana.edu/hypermail/linux/kernel/1205.0/00100.html EAX should be KVM_CPUID_FEATURES (0x4001) not 0. --- target-i386/kvm.c |2 +- 1 files changed, 1 insertions

Re: [PATCH 2/2] target-i386: Fix default Hypervisor level for hypervisor-vendor=kvm.

2012-09-19 Thread Don Slutz
On 09/19/12 09:20, Eduardo Habkost wrote: On Tue, Sep 18, 2012 at 03:32:04PM -0400, Don Slutz wrote: On 09/18/12 13:00, Eduardo Habkost wrote: On Tue, Sep 18, 2012 at 10:49:53AM -0400, Don Slutz wrote: From http://lkml.indiana.edu/hypermail/linux/kernel/1205.0/00100.html EAX should be

Re: [Qemu-devel] [PATCH v3 05/17] target-i386: Add x86_set_hyperv.

2012-09-19 Thread Don Slutz
On 09/19/12 15:32, Eduardo Habkost wrote: On Mon, Sep 17, 2012 at 10:00:55AM -0400, Don Slutz wrote: This is used to set the cpu object's hypervisor level to the default for Microsoft's Hypervisor. Signed-off-by: Don Slutz --- target-i386/cpu.c | 10 ++ 1 files c

[PATCH v4 00/17] Allow changing of Hypervisor CPUIDs.

2012-09-20 Thread Don Slutz
ers. So split 3 and 4 into 3 to 17. More info in change log. No code change. Don Slutz (17): target-i386: Allow tsc-frequency to be larger then 2.147G target-i386: Add missing kvm bits. target-i386: Add Hypervisor level. target-i386: Add cpu object access routines for Hypervisor level. tar

[PATCH v4 01/17] target-i386: Allow tsc-frequency to be larger then 2.147G

2012-09-20 Thread Don Slutz
The check using INT_MAX (2147483647) is wrong in this case. Signed-off-by: Fred Oliveira Signed-off-by: Don Slutz --- target-i386/cpu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index af50a8f..0313cf5 100644 --- a/target

[PATCH v4 02/17] target-i386: Add missing kvm bits.

2012-09-20 Thread Don Slutz
Fix duplicate name (kvmclock => kvm_clock2) also. Signed-off-by: Don Slutz --- target-i386/cpu.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 0313cf5..5f9866a 100644 --- a/target-i386/cpu.c +++ b/target-i

[PATCH v4 03/17] target-i386: Add Hypervisor level.

2012-09-20 Thread Don Slutz
virtual machine): http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 QEMU has the value HYPERV_CPUID_MIN defined. Signed-off-by: Don Slutz --- target-i386/cpu.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[PATCH v4 05/17] target-i386: Add x86_set_hyperv.

2012-09-20 Thread Don Slutz
This is used to set the cpu object's hypervisor level to the default for Microsoft's Hypervisor. HYPERV_CPUID_MIN (0x4005) is defined in a linux header file. CPUID_HV_LEVEL_HYPERV (0x4005) is used instead. Signed-off-by: Don Slutz --- target-i386/cpu.c | 10 ++ t

[PATCH v4 04/17] target-i386: Add cpu object access routines for Hypervisor level.

2012-09-20 Thread Don Slutz
These are modeled after x86_cpuid_get_xlevel and x86_cpuid_set_xlevel. Signed-off-by: Don Slutz --- target-i386/cpu.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 5f9866a..0e4a18d 100644 --- a

[PATCH v4 07/17] target-i386: Use Hypervisor level in -machine pc,accel=tcg.

2012-09-20 Thread Don Slutz
ows this as KVM_CPUID_SIGNATURE (0x4000) in kvm on linux. This does not provide vendor support in tcg yet. Signed-off-by: Don Slutz --- target-i386/cpu.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index

[PATCH v4 06/17] target-i386: Use Hypervisor level in -machine pc,accel=kvm.

2012-09-20 Thread Don Slutz
ows this is KVM_CPUID_SIGNATURE (0x4000). Signed-off-by: Don Slutz --- target-i386/kvm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 895d848..bf27793 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -389,12

[PATCH v4 09/17] target-i386: Add cpu object access routines for Hypervisor vendor.

2012-09-20 Thread Don Slutz
e/ff542428%28v=vs.85%29.aspx And matches want is in target-i386/kvm.c Signed-off-by: Don Slutz --- target-i386/cpu.c | 44 target-i386/cpu.h |2 ++ 2 files changed, 46 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/c

[PATCH v4 10/17] target-i386: Use Hypervisor vendor in -machine pc,accel=kvm.

2012-09-20 Thread Don Slutz
d-off-by: Don Slutz --- target-i386/kvm.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index bf27793..dde9214 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -389,16 +389,21 @@ int kvm_arch_init_vcpu(CPUX86St

[PATCH v4 13/17] target-i386: Add optional Hypervisor leaf extra.

2012-09-20 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 6dafaeb..e158c54 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -807,6 +807,10 @@ typedef struct CPUX86State

[PATCH v4 14/17] target-i386: Add cpu object access routines for Hypervisor leaf extra.

2012-09-20 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.c | 66 + 1 files changed, 66 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 904b08f..7e9c43b 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c

[PATCH v4 15/17] target-i386: Add setting of Hypervisor leaf extra for known vmare4.

2012-09-20 Thread Don Slutz
This was taken from: http://article.gmane.org/gmane.comp.emulators.kvm.devel/22643 Signed-off-by: Don Slutz --- target-i386/cpu.c | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 7e9c43b

[PATCH v4 16/17] target-i386: Use Hypervisor leaf extra in -machine pc,accel=kvm.

2012-09-20 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/kvm.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index dde9214..bd7753f 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -457,6 +457,25 @@ int

[PATCH v4 12/17] target-i386: Add some known names to Hypervisor vendor.

2012-09-20 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.c | 44 +++- target-i386/cpu.h | 14 ++ 2 files changed, 57 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 5cf7146..904b08f 100644 --- a/target-i386/cpu.c

[PATCH v4 11/17] target-i386: Use Hypervisor vendor in -machine pc,accel=tcg.

2012-09-20 Thread Don Slutz
?language=en_US&cmd=displayKC&externalId=1009458 Signed-off-by: Don Slutz --- target-i386/cpu.c | 20 ++-- target-i386/cpu.h |2 ++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index d8f7e22..5cf7146 100644 --- a/tar

[PATCH v4 17/17] target-i386: Use Hypervisor leaf extra in -machine pc,accel=tcg.

2012-09-20 Thread Don Slutz
Signed-off-by: Don Slutz --- target-i386/cpu.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 4594693..72a8442 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1991,6 +1991,17 @@ void cpu_x86_cpuid

[PATCH v4 08/17] target-i386: Add Hypervisor vendor.

2012-09-20 Thread Don Slutz
/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 Signed-off-by: Don Slutz --- target-i386/cpu.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 7fc7906..e13a44a 100644 --- a/target-i386/cpu

[PATCH v2 0/1] target-i386: Fix default Hypervisor level for kvm

2012-09-20 Thread Don Slutz
sible live-migrating issues. Added kvm1 and kvm0 to handle the 2 cases. Don Slutz (1): target-i386: Fix default Hypervisor level for hypervisor-vendor=kvm. target-i386/cpu.c | 17 + 1 files changed, 13 insertions(+), 4 deletions(-) -- To unsubscribe from this list: send the

[PATCH v2 1/1] target-i386: Fix default Hypervisor level for hypervisor-vendor=kvm.

2012-09-20 Thread Don Slutz
>From http://lkml.indiana.edu/hypermail/linux/kernel/1205.0/00100.html EAX should be KVM_CPUID_FEATURES (0x4001) not 0. Added hypervisor-vendor=kvm0 to get the older CPUID result. kvm1 selects the newer one. Signed-off-by: Don Slutz --- target-i386/cpu.c | 17 + 1 fi

Re: [PATCH v4 02/17] target-i386: Add missing kvm bits.

2012-09-21 Thread Don Slutz
On 09/21/12 08:36, Eduardo Habkost wrote: On Fri, Sep 21, 2012 at 10:39:52AM +0200, Igor Mammedov wrote: On Thu, 20 Sep 2012 16:03:17 -0400 Don Slutz wrote: Fix duplicate name (kvmclock => kvm_clock2) also. Signed-off-by: Don Slutz --- target-i386/cpu.c | 12 1 fi

Re: [PATCH v2 1/1] target-i386: Fix default Hypervisor level for hypervisor-vendor=kvm.

2012-09-21 Thread Don Slutz
On 09/21/12 10:18, Eduardo Habkost wrote: On Thu, Sep 20, 2012 at 04:06:27PM -0400, Don Slutz wrote: From http://lkml.indiana.edu/hypermail/linux/kernel/1205.0/00100.html EAX should be KVM_CPUID_FEATURES (0x4001) not 0. Added hypervisor-vendor=kvm0 to get the older CPUID result. kvm1

Re: [PATCH v2 1/1] target-i386: Fix default Hypervisor level for hypervisor-vendor=kvm.

2012-09-21 Thread Don Slutz
On 09/21/12 16:49, Eduardo Habkost wrote: On Fri, Sep 21, 2012 at 04:26:58PM -0400, Don Slutz wrote: On 09/21/12 10:18, Eduardo Habkost wrote: On Thu, Sep 20, 2012 at 04:06:27PM -0400, Don Slutz wrote: From http://lkml.indiana.edu/hypermail/linux/kernel/1205.0/00100.html EAX should be

[PATCH v5 00/17] Allow changing of Hypervisor CPUIDs.

2012-09-21 Thread Don Slutz
is would help reviewers. So split 3 and 4 into 3 to 17. More info in change log. No code change. Don Slutz (17): target-i386: Allow tsc-frequency to be larger then 2.147G target-i386: Add missing kvm bits. target-i386: Add Hypervisor level. target-i386: Add cpu object access routines for Hy

[PATCH v5 01/17] target-i386: Allow tsc-frequency to be larger then 2.147G

2012-09-21 Thread Don Slutz
The check using INT_MAX (2147483647) is wrong in this case. Signed-off-by: Fred Oliveira Signed-off-by: Don Slutz --- target-i386/cpu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index af50a8f..0313cf5 100644 --- a/target

[PATCH v5 03/17] target-i386: Add Hypervisor level.

2012-09-21 Thread Don Slutz
virtual machine): http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 QEMU has the value HYPERV_CPUID_MIN defined. Signed-off-by: Don Slutz --- target-i386/cpu.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git

[PATCH v5 02/17] target-i386: Add missing kvm bits.

2012-09-21 Thread Don Slutz
Fix duplicate name (kvmclock => kvm_clock2) also. Signed-off-by: Don Slutz --- target-i386/cpu.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 0313cf5..25ca986 100644 --- a/target-i386/cpu.c +++ b/target-i

[PATCH v5 04/17] target-i386: Add cpu object access routines for Hypervisor level.

2012-09-21 Thread Don Slutz
These are modeled after x86_cpuid_get_xlevel and x86_cpuid_set_xlevel. Signed-off-by: Don Slutz --- target-i386/cpu.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 25ca986..7b31de9 100644 --- a

[PATCH v5 05/17] target-i386: Add cpu object access routines for Hypervisor level.

2012-09-21 Thread Don Slutz
These are modeled after x86_cpuid_get_xlevel and x86_cpuid_set_xlevel. Signed-off-by: Don Slutz --- target-i386/cpu.c |8 target-i386/cpu.h |2 ++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 7b31de9..e5deca2 100644

[PATCH v5 06/17] target-i386: Use Hypervisor level in -machine pc,accel=kvm.

2012-09-21 Thread Don Slutz
ows this is KVM_CPUID_SIGNATURE (0x4000). Signed-off-by: Don Slutz --- target-i386/kvm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 895d848..8462c75 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -389,12

[PATCH v5 07/17] target-i386: Use Hypervisor level in -machine pc,accel=tcg.

2012-09-21 Thread Don Slutz
ows this as KVM_CPUID_SIGNATURE (0x4000) in kvm on linux. This does not provide vendor support in tcg yet. Signed-off-by: Don Slutz --- target-i386/cpu.c | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu

[PATCH v5 08/17] target-i386: Add Hypervisor vendor.

2012-09-21 Thread Don Slutz
/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 Signed-off-by: Don Slutz --- target-i386/cpu.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 3152a4e..11730b2 100644 --- a/target-i386/cpu

  1   2   >