[Qemu-devel] [PATCH v8 27/28] tests/qmp-test: blacklist query-sev-launch-measure command

Brijesh Singh posted 28 patches 7 years, 11 months ago
Only 27 patches received!
There is a newer version of this series
[Qemu-devel] [PATCH v8 27/28] tests/qmp-test: blacklist query-sev-launch-measure command
Posted by Brijesh Singh 7 years, 11 months ago
The query-sev-launch-measure command returns a measurement of encrypted
memory when SEV is enabled otherwise it returns an error. Blacklist the
command in qmp-test to fix the 'make check' failure.

Cc: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
---
 tests/qmp-test.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/qmp-test.c b/tests/qmp-test.c
index 908f9b981f6e..d8720798ad0b 100644
--- a/tests/qmp-test.c
+++ b/tests/qmp-test.c
@@ -202,6 +202,8 @@ static bool query_is_blacklisted(const char *cmd)
         "query-gic-capabilities", /* arm */
         /* Success depends on target-specific build configuration: */
         "query-pci",              /* CONFIG_PCI */
+        /* Success depends on launching SEV guest */
+        "query-sev-launch-measure",
         NULL
     };
     int i;
-- 
2.14.3


Re: [Qemu-devel] [PATCH v8 27/28] tests/qmp-test: blacklist query-sev-launch-measure command
Posted by Dr. David Alan Gilbert 7 years, 11 months ago
* Brijesh Singh (brijesh.singh@amd.com) wrote:
> The query-sev-launch-measure command returns a measurement of encrypted
> memory when SEV is enabled otherwise it returns an error. Blacklist the
> command in qmp-test to fix the 'make check' failure.
> 
> Cc: "Daniel P. Berrangé" <berrange@redhat.com>
> Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
> Cc: Markus Armbruster <armbru@redhat.com>
> Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

> ---
>  tests/qmp-test.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/qmp-test.c b/tests/qmp-test.c
> index 908f9b981f6e..d8720798ad0b 100644
> --- a/tests/qmp-test.c
> +++ b/tests/qmp-test.c
> @@ -202,6 +202,8 @@ static bool query_is_blacklisted(const char *cmd)
>          "query-gic-capabilities", /* arm */
>          /* Success depends on target-specific build configuration: */
>          "query-pci",              /* CONFIG_PCI */
> +        /* Success depends on launching SEV guest */
> +        "query-sev-launch-measure",
>          NULL
>      };
>      int i;
> -- 
> 2.14.3
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK