diff mbox series

[kvm-unit-tests,v2] x86: Add a kvm module parameter check for vmware_backdoors test

Message ID 157920400074.15031.16850091609715260458.stgit@naples-babu.amd.com (mailing list archive)
State New, archived
Headers show
Series [kvm-unit-tests,v2] x86: Add a kvm module parameter check for vmware_backdoors test | expand

Commit Message

Babu Moger Jan. 16, 2020, 7:47 p.m. UTC
vmware_backdoors test fails if the kvm module parameter
enable_vmware_backdoor is not set to Y. Add a check before
running the test.

Suggested-by: Wei Huang <Wei.Huang2@amd.com>
Signed-off-by: Babu Moger <babu.moger@amd.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
---
v2: Fixed Wei's name.
    Added reviwed by Liran Alon.

 x86/unittests.cfg |    1 +
 1 file changed, 1 insertion(+)

Comments

Paolo Bonzini Jan. 18, 2020, 9:36 p.m. UTC | #1
On 16/01/20 20:47, Babu Moger wrote:
> vmware_backdoors test fails if the kvm module parameter
> enable_vmware_backdoor is not set to Y. Add a check before
> running the test.
> 
> Suggested-by: Wei Huang <Wei.Huang2@amd.com>
> Signed-off-by: Babu Moger <babu.moger@amd.com>
> Reviewed-by: Liran Alon <liran.alon@oracle.com>
> ---
> v2: Fixed Wei's name.
>     Added reviwed by Liran Alon.
> 
>  x86/unittests.cfg |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/x86/unittests.cfg b/x86/unittests.cfg
> index 51e4ba5..aae1523 100644
> --- a/x86/unittests.cfg
> +++ b/x86/unittests.cfg
> @@ -164,6 +164,7 @@ check = /proc/sys/kernel/nmi_watchdog=0
>  [vmware_backdoors]
>  file = vmware_backdoors.flat
>  extra_params = -machine vmport=on -cpu host
> +check = /sys/module/kvm/parameters/enable_vmware_backdoor=Y
>  arch = x86_64
>  
>  [port80]
> 

Queued, thanks.

Paolo
diff mbox series

Patch

diff --git a/x86/unittests.cfg b/x86/unittests.cfg
index 51e4ba5..aae1523 100644
--- a/x86/unittests.cfg
+++ b/x86/unittests.cfg
@@ -164,6 +164,7 @@  check = /proc/sys/kernel/nmi_watchdog=0
 [vmware_backdoors]
 file = vmware_backdoors.flat
 extra_params = -machine vmport=on -cpu host
+check = /sys/module/kvm/parameters/enable_vmware_backdoor=Y
 arch = x86_64
 
 [port80]