public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Only compile KVM support for matching CPU types
@ 2009-06-24 22:40 Anthony Liguori
  2009-06-24 23:09 ` Dustin Kirkland
  2009-06-28 14:03 ` Avi Kivity
  0 siblings, 2 replies; 5+ messages in thread
From: Anthony Liguori @ 2009-06-24 22:40 UTC (permalink / raw)
  To: kvm; +Cc: Avi Kivity, Dustin Kirkland, Hollis Blanchard, Anthony Liguori

I don't know why this is disabled for qemu-kvm.git.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
---
 configure |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/configure b/configure
index 4bad3c3..1b73eaf 100755
--- a/configure
+++ b/configure
@@ -2117,13 +2117,12 @@ configure_kvm() {
   fi
 }
 
-if [ use_upstream_kvm = yes ]; then
-
 # Make sure the target and host cpus are compatible
 if test ! \( "$target_cpu" = "$cpu" -o \
   \( "$target_cpu" = "ppcemb" -a "$cpu" = "ppc" \) -o \
   \( "$target_cpu" = "x86_64" -a "$cpu" = "i386"   \) -o \
   \( "$target_cpu" = "i386"   -a "$cpu" = "x86_64" \) \) ; then
+  \( "$target_cpu" = "ia64"   -a "$cpu" = "ia64" \) \) ; then
   target_kvm="no"
 fi
 # Disable KVM for linux-user
@@ -2131,8 +2130,6 @@ if test "$target_softmmu" = "no" ; then
   target_kvm="no"
 fi
 
-fi
-
 case "$target_cpu" in
   i386)
     echo "TARGET_ARCH=i386" >> $config_mak
-- 
1.6.2.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] Only compile KVM support for matching CPU types
  2009-06-24 22:40 [PATCH] Only compile KVM support for matching CPU types Anthony Liguori
@ 2009-06-24 23:09 ` Dustin Kirkland
  2009-06-24 23:14   ` Dustin Kirkland
  2009-06-24 23:29   ` Anthony Liguori
  2009-06-28 14:03 ` Avi Kivity
  1 sibling, 2 replies; 5+ messages in thread
From: Dustin Kirkland @ 2009-06-24 23:09 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: kvm, Avi Kivity, Hollis Blanchard

[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]

On Wed, 2009-06-24 at 17:40 -0500, Anthony Liguori wrote:
> I don't know why this is disabled for qemu-kvm.git.
> 
> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
> ---
>  configure |    5 +----
>  1 files changed, 1 insertions(+), 4 deletions(-)
> 
> diff --git a/configure b/configure
> index 4bad3c3..1b73eaf 100755
> --- a/configure
> +++ b/configure
> @@ -2117,13 +2117,12 @@ configure_kvm() {
>    fi
>  }
>  
> -if [ use_upstream_kvm = yes ]; then
> -
>  # Make sure the target and host cpus are compatible
>  if test ! \( "$target_cpu" = "$cpu" -o \
>    \( "$target_cpu" = "ppcemb" -a "$cpu" = "ppc" \) -o \
>    \( "$target_cpu" = "x86_64" -a "$cpu" = "i386"   \) -o \
>    \( "$target_cpu" = "i386"   -a "$cpu" = "x86_64" \) \) ; then
> +  \( "$target_cpu" = "ia64"   -a "$cpu" = "ia64" \) \) ; then

Almost...

-  \( "$target_cpu" = "i386"   -a "$cpu" = "x86_64" \) \) ; then
+  \( "$target_cpu" = "i386"   -a "$cpu" = "x86_64" \) \) -o \
+  \( "$target_cpu" = "ia64"   -a "$cpu" = "ia64" \) \) ; then

:-Dustin

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Only compile KVM support for matching CPU types
  2009-06-24 23:09 ` Dustin Kirkland
@ 2009-06-24 23:14   ` Dustin Kirkland
  2009-06-24 23:29   ` Anthony Liguori
  1 sibling, 0 replies; 5+ messages in thread
From: Dustin Kirkland @ 2009-06-24 23:14 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: kvm, Avi Kivity, Hollis Blanchard

[-- Attachment #1: Type: text/plain, Size: 1626 bytes --]

On Wed, 2009-06-24 at 18:09 -0500, Dustin Kirkland wrote:
> On Wed, 2009-06-24 at 17:40 -0500, Anthony Liguori wrote:
> >  # Make sure the target and host cpus are compatible
> >  if test ! \( "$target_cpu" = "$cpu" -o \
> >    \( "$target_cpu" = "ppcemb" -a "$cpu" = "ppc" \) -o \
> >    \( "$target_cpu" = "x86_64" -a "$cpu" = "i386"   \) -o \
> >    \( "$target_cpu" = "i386"   -a "$cpu" = "x86_64" \) \) ; then
> > +  \( "$target_cpu" = "ia64"   -a "$cpu" = "ia64" \) \) ; then
> 
> Almost...
> 
> -  \( "$target_cpu" = "i386"   -a "$cpu" = "x86_64" \) \) ; then
> +  \( "$target_cpu" = "i386"   -a "$cpu" = "x86_64" \) \) -o \
> +  \( "$target_cpu" = "ia64"   -a "$cpu" = "ia64" \) \) ; then

Doh.  Still not quite right...

Clean patch below.

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>

=== modified file 'configure'
--- configure	2009-06-17 11:16:33 +0000
+++ configure	2009-06-24 23:13:00 +0000
@@ -2117,13 +2117,12 @@
   fi
 }
 
-if [ use_upstream_kvm = yes ]; then
-
 # Make sure the target and host cpus are compatible
 if test ! \( "$target_cpu" = "$cpu" -o \
   \( "$target_cpu" = "ppcemb" -a "$cpu" = "ppc" \) -o \
   \( "$target_cpu" = "x86_64" -a "$cpu" = "i386"   \) -o \
-  \( "$target_cpu" = "i386"   -a "$cpu" = "x86_64" \) \) ; then
+  \( "$target_cpu" = "i386"   -a "$cpu" = "x86_64" \) -o \
+  \( "$target_cpu" = "ia64"   -a "$cpu" = "ia64" \) \) ; then
   target_kvm="no"
 fi
 # Disable KVM for linux-user
@@ -2131,8 +2130,6 @@
   target_kvm="no"
 fi
 
-fi
-
 case "$target_cpu" in
   i386)
     echo "TARGET_ARCH=i386" >> $config_mak



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Only compile KVM support for matching CPU types
  2009-06-24 23:09 ` Dustin Kirkland
  2009-06-24 23:14   ` Dustin Kirkland
@ 2009-06-24 23:29   ` Anthony Liguori
  1 sibling, 0 replies; 5+ messages in thread
From: Anthony Liguori @ 2009-06-24 23:29 UTC (permalink / raw)
  To: kirkland; +Cc: kvm, Avi Kivity, Hollis Blanchard

Dustin Kirkland wrote:
> On Wed, 2009-06-24 at 17:40 -0500, Anthony Liguori wrote:
>   
>> I don't know why this is disabled for qemu-kvm.git.
>>
>> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
>> ---
>>  configure |    5 +----
>>  1 files changed, 1 insertions(+), 4 deletions(-)
>>
>> diff --git a/configure b/configure
>> index 4bad3c3..1b73eaf 100755
>> --- a/configure
>> +++ b/configure
>> @@ -2117,13 +2117,12 @@ configure_kvm() {
>>    fi
>>  }
>>  
>> -if [ use_upstream_kvm = yes ]; then
>> -
>>  # Make sure the target and host cpus are compatible
>>  if test ! \( "$target_cpu" = "$cpu" -o \
>>    \( "$target_cpu" = "ppcemb" -a "$cpu" = "ppc" \) -o \
>>    \( "$target_cpu" = "x86_64" -a "$cpu" = "i386"   \) -o \
>>    \( "$target_cpu" = "i386"   -a "$cpu" = "x86_64" \) \) ; then
>> +  \( "$target_cpu" = "ia64"   -a "$cpu" = "ia64" \) \) ; then
>>     
>
> Almost...
>
> -  \( "$target_cpu" = "i386"   -a "$cpu" = "x86_64" \) \) ; then
> +  \( "$target_cpu" = "i386"   -a "$cpu" = "x86_64" \) \) -o \
> +  \( "$target_cpu" = "ia64"   -a "$cpu" = "ia64" \) \) ; then
>   

Yeah, I have that locally but I forgot to commit --amend.  doh!

Regards,

Anthony Liguori

> :-Dustin
>   


-- 
Regards,

Anthony Liguori


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Only compile KVM support for matching CPU types
  2009-06-24 22:40 [PATCH] Only compile KVM support for matching CPU types Anthony Liguori
  2009-06-24 23:09 ` Dustin Kirkland
@ 2009-06-28 14:03 ` Avi Kivity
  1 sibling, 0 replies; 5+ messages in thread
From: Avi Kivity @ 2009-06-28 14:03 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: kvm, Dustin Kirkland, Hollis Blanchard

On 06/25/2009 01:40 AM, Anthony Liguori wrote:

Applied, thanks.

> I don't know why this is disabled for qemu-kvm.git.
>    

It was disabled before qemu.git got reworked here, IIRC.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-06-28 14:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-24 22:40 [PATCH] Only compile KVM support for matching CPU types Anthony Liguori
2009-06-24 23:09 ` Dustin Kirkland
2009-06-24 23:14   ` Dustin Kirkland
2009-06-24 23:29   ` Anthony Liguori
2009-06-28 14:03 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox