All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH] powerpc/run: if qemu-system-ppc64 not available try for qemu-kvm
@ 2017-04-19 13:10 Balamuruhan S
  2017-04-19 13:40 ` Andrew Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Balamuruhan S @ 2017-04-19 13:10 UTC (permalink / raw)
  To: kvm; +Cc: drjones, Balamuruhan S

In RHEV 4.1 with RHEL7.3 qemu-system-ppc64 is not available and the tests
skips with "qemu-system-ppc64 not found." instead qemu-kvm is available in
/usr/libexec and can be used to proceed the test.

Signed-off-by: Balamuruhan S <bala24@linux.vnet.ibm.com>
---
 powerpc/run | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/powerpc/run b/powerpc/run
index d92608e..ea79d35 100755
--- a/powerpc/run
+++ b/powerpc/run
@@ -32,8 +32,16 @@ qemu="${QEMU:-qemu-system-$ARCH_NAME}"
 qpath=$(which $qemu 2>/dev/null)
 
 if [ -z "$qpath" ]; then
-	echo $qemu not found.
-	exit 2
+    # In RHEV 4.1 with RHEL7.3 qemu-system-ppc64 is not available
+    # instead qemu-kvm is available in /usr/libexec
+    echo $qemu not found trying for qemu-kvm
+    PATH=$PATH:/usr/libexec
+    qemu="${QEMU:-qemu-kvm}"
+    qpath=$(which $qemu 2>/dev/null)
+    if [ -z "$qpath" ]; then
+        echo $qemu not found.
+        exit 2
+    fi
 fi
 
 if ! $qemu -machine '?' 2>&1 | grep 'pseries' > /dev/null; then
-- 
2.7.4

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

* Re: [kvm-unit-tests PATCH] powerpc/run: if qemu-system-ppc64 not available try for qemu-kvm
  2017-04-19 13:10 [kvm-unit-tests PATCH] powerpc/run: if qemu-system-ppc64 not available try for qemu-kvm Balamuruhan S
@ 2017-04-19 13:40 ` Andrew Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Jones @ 2017-04-19 13:40 UTC (permalink / raw)
  To: Balamuruhan S; +Cc: kvm

On Wed, Apr 19, 2017 at 06:40:06PM +0530, Balamuruhan S wrote:
> In RHEV 4.1 with RHEL7.3 qemu-system-ppc64 is not available and the tests
> skips with "qemu-system-ppc64 not found." instead qemu-kvm is available in
> /usr/libexec and can be used to proceed the test.
> 
> Signed-off-by: Balamuruhan S <bala24@linux.vnet.ibm.com>
> ---
>  powerpc/run | 12 ++++++++++--
>  1 file changed, 10 insertions(+), 2 deletions(-)
> 
> diff --git a/powerpc/run b/powerpc/run
> index d92608e..ea79d35 100755
> --- a/powerpc/run
> +++ b/powerpc/run
> @@ -32,8 +32,16 @@ qemu="${QEMU:-qemu-system-$ARCH_NAME}"
>  qpath=$(which $qemu 2>/dev/null)
>  
>  if [ -z "$qpath" ]; then
> -	echo $qemu not found.
> -	exit 2
> +    # In RHEV 4.1 with RHEL7.3 qemu-system-ppc64 is not available
> +    # instead qemu-kvm is available in /usr/libexec
> +    echo $qemu not found trying for qemu-kvm
> +    PATH=$PATH:/usr/libexec
> +    qemu="${QEMU:-qemu-kvm}"
> +    qpath=$(which $qemu 2>/dev/null)
> +    if [ -z "$qpath" ]; then
> +        echo $qemu not found.
> +        exit 2
> +    fi
>  fi
>  
>  if ! $qemu -machine '?' 2>&1 | grep 'pseries' > /dev/null; then
> -- 
> 2.7.4
> 

Maybe we should generalize/simply the QEMU search that x86/run does, and
put it in scripts/arch-run.bash.  That way we can add all alternative
paths in one place and use the same search function for all arches.

Thanks,
drew

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

end of thread, other threads:[~2017-04-19 13:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-19 13:10 [kvm-unit-tests PATCH] powerpc/run: if qemu-system-ppc64 not available try for qemu-kvm Balamuruhan S
2017-04-19 13:40 ` Andrew Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.