Re: [PATCH] Only compile KVM support for matching CPU types

Dustin Kirkland
2009-06-24T23:09:39Z

[-- 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 --]