All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] s390: Add attestation query information
@ 2022-05-18 13:59 Steffen Eiden
  2022-05-18 13:59 ` [PATCH v2 1/1] " Steffen Eiden
  2022-05-20 11:11 ` [PATCH v2 0/1] " Heiko Carstens
  0 siblings, 2 replies; 7+ messages in thread
From: Steffen Eiden @ 2022-05-18 13:59 UTC (permalink / raw)
  To: Heiko Carstens, Christian Borntraeger, Janosch Frank,
	Claudio Imbrenda, Nico Boehr, linux-s390, linux-kernel

By design the uv-device does not check whether an incoming attestation
measurement request only specifies valid plaintext flags or has the
right request version, as these values are verified by the Ultravisor
anyway. However, the userspace program that generates these requests
might want to know which flags/versions are supported in order to
create requests without trial and error. Therefore, we must expose the
supported plaintext flags and versions to userspace.

since v1:
	* rebased on Janosch's "kvm: s390: Add PV dump support" series
	* added rationale as this cover letter

Steffen Eiden (1):
  s390: Add attestation query information

 arch/s390/boot/uv.c        |  2 ++
 arch/s390/include/asm/uv.h |  7 ++++++-
 arch/s390/kernel/uv.c      | 20 ++++++++++++++++++++
 3 files changed, 28 insertions(+), 1 deletion(-)

-- 
2.30.2


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

* [PATCH v2 1/1] s390: Add attestation query information
  2022-05-18 13:59 [PATCH v2 0/1] s390: Add attestation query information Steffen Eiden
@ 2022-05-18 13:59 ` Steffen Eiden
  2022-05-20 14:48   ` Janosch Frank
                     ` (2 more replies)
  2022-05-20 11:11 ` [PATCH v2 0/1] " Heiko Carstens
  1 sibling, 3 replies; 7+ messages in thread
From: Steffen Eiden @ 2022-05-18 13:59 UTC (permalink / raw)
  To: Heiko Carstens, Christian Borntraeger, Janosch Frank,
	Claudio Imbrenda, Nico Boehr, linux-s390, linux-kernel

We have information about the supported attestation header version
and plaintext attestation flag bits.
Let's expose it via the sysfs files.

Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
---
 arch/s390/boot/uv.c        |  2 ++
 arch/s390/include/asm/uv.h |  7 ++++++-
 arch/s390/kernel/uv.c      | 20 ++++++++++++++++++++
 3 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/arch/s390/boot/uv.c b/arch/s390/boot/uv.c
index 67c737c1e580..a5fa667160b2 100644
--- a/arch/s390/boot/uv.c
+++ b/arch/s390/boot/uv.c
@@ -45,6 +45,8 @@ void uv_query_info(void)
 		uv_info.supp_se_hdr_pcf = uvcb.supp_se_hdr_pcf;
 		uv_info.conf_dump_storage_state_len = uvcb.conf_dump_storage_state_len;
 		uv_info.conf_dump_finalize_len = uvcb.conf_dump_finalize_len;
+		uv_info.supp_att_req_hdr_ver = uvcb.supp_att_req_hdr_ver;
+		uv_info.supp_att_pflags = uvcb.supp_att_pflags;
 	}
 
 #ifdef CONFIG_PROTECTED_VIRTUALIZATION_GUEST
diff --git a/arch/s390/include/asm/uv.h b/arch/s390/include/asm/uv.h
index 3e597bb634bd..18fe04c8547e 100644
--- a/arch/s390/include/asm/uv.h
+++ b/arch/s390/include/asm/uv.h
@@ -124,7 +124,10 @@ struct uv_cb_qui {
 	u64 reservedc0;				/* 0x00c0 */
 	u64 conf_dump_storage_state_len;	/* 0x00c8 */
 	u64 conf_dump_finalize_len;		/* 0x00d0 */
-	u8  reservedd8[256 - 216];		/* 0x00d8 */
+	u64 reservedd8;				/* 0x00d8 */
+	u64 supp_att_req_hdr_ver;		/* 0x00e0 */
+	u64 supp_att_pflags;			/* 0x00e8 */
+	u8 reservedf0[256 - 240];		/* 0x00f0 */
 } __packed __aligned(8);
 
 /* Initialize Ultravisor */
@@ -350,6 +353,8 @@ struct uv_info {
 	unsigned long supp_se_hdr_pcf;
 	unsigned long conf_dump_storage_state_len;
 	unsigned long conf_dump_finalize_len;
+	unsigned long supp_att_req_hdr_ver;
+	unsigned long supp_att_pflags;
 };
 
 extern struct uv_info uv_info;
diff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c
index 84fe33b6af4d..c13d5a7b71f0 100644
--- a/arch/s390/kernel/uv.c
+++ b/arch/s390/kernel/uv.c
@@ -479,6 +479,24 @@ static ssize_t uv_query_max_guest_addr(struct kobject *kobj,
 static struct kobj_attribute uv_query_max_guest_addr_attr =
 	__ATTR(max_address, 0444, uv_query_max_guest_addr, NULL);
 
+static ssize_t uv_query_supp_att_req_hdr_ver(struct kobject *kobj,
+					     struct kobj_attribute *attr, char *page)
+{
+	return scnprintf(page, PAGE_SIZE, "%lx\n", uv_info.supp_att_req_hdr_ver);
+}
+
+static struct kobj_attribute uv_query_supp_att_req_hdr_ver_attr =
+	__ATTR(supp_att_req_hdr_ver, 0444, uv_query_supp_att_req_hdr_ver, NULL);
+
+static ssize_t uv_query_supp_att_pflags(struct kobject *kobj,
+					struct kobj_attribute *attr, char *page)
+{
+	return scnprintf(page, PAGE_SIZE, "%lx\n", uv_info.supp_att_pflags);
+}
+
+static struct kobj_attribute uv_query_supp_att_pflags_attr =
+	__ATTR(supp_att_pflags, 0444, uv_query_supp_att_pflags, NULL);
+
 static struct attribute *uv_query_attrs[] = {
 	&uv_query_facilities_attr.attr,
 	&uv_query_feature_indications_attr.attr,
@@ -490,6 +508,8 @@ static struct attribute *uv_query_attrs[] = {
 	&uv_query_dump_storage_state_len_attr.attr,
 	&uv_query_dump_finalize_len_attr.attr,
 	&uv_query_dump_cpu_len_attr.attr,
+	&uv_query_supp_att_req_hdr_ver_attr.attr,
+	&uv_query_supp_att_pflags_attr.attr,
 	NULL,
 };
 
-- 
2.30.2


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

* Re: [PATCH v2 0/1] s390: Add attestation query information
  2022-05-18 13:59 [PATCH v2 0/1] s390: Add attestation query information Steffen Eiden
  2022-05-18 13:59 ` [PATCH v2 1/1] " Steffen Eiden
@ 2022-05-20 11:11 ` Heiko Carstens
  1 sibling, 0 replies; 7+ messages in thread
From: Heiko Carstens @ 2022-05-20 11:11 UTC (permalink / raw)
  To: Steffen Eiden
  Cc: Christian Borntraeger, Janosch Frank, Claudio Imbrenda,
	Nico Boehr, linux-s390, linux-kernel

On Wed, May 18, 2022 at 01:59:07PM +0000, Steffen Eiden wrote:
> By design the uv-device does not check whether an incoming attestation
> measurement request only specifies valid plaintext flags or has the
> right request version, as these values are verified by the Ultravisor
> anyway. However, the userspace program that generates these requests
> might want to know which flags/versions are supported in order to
> create requests without trial and error. Therefore, we must expose the
> supported plaintext flags and versions to userspace.
> 
> since v1:
> 	* rebased on Janosch's "kvm: s390: Add PV dump support" series
> 	* added rationale as this cover letter

Thanks for adding the cover letter! However what I really meant (and
failed to write) is that the rationale should be part of the patch
description. Anyway; whoever picks this patch will hopefully integrate
your cover letter description into the commit.

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

* Re: [PATCH v2 1/1] s390: Add attestation query information
  2022-05-18 13:59 ` [PATCH v2 1/1] " Steffen Eiden
@ 2022-05-20 14:48   ` Janosch Frank
  2022-05-24 14:55   ` Claudio Imbrenda
  2022-06-01 10:02   ` Steffen Eiden
  2 siblings, 0 replies; 7+ messages in thread
From: Janosch Frank @ 2022-05-20 14:48 UTC (permalink / raw)
  To: Steffen Eiden, Heiko Carstens, Christian Borntraeger,
	Claudio Imbrenda, Nico Boehr, linux-s390, linux-kernel

On 5/18/22 15:59, Steffen Eiden wrote:
> We have information about the supported attestation header version
> and plaintext attestation flag bits.
> Let's expose it via the sysfs files.
> 
> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>

When Heiko's nit for the commit message is fixed:
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>


> ---
>   arch/s390/boot/uv.c        |  2 ++
>   arch/s390/include/asm/uv.h |  7 ++++++-
>   arch/s390/kernel/uv.c      | 20 ++++++++++++++++++++
>   3 files changed, 28 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/s390/boot/uv.c b/arch/s390/boot/uv.c
> index 67c737c1e580..a5fa667160b2 100644
> --- a/arch/s390/boot/uv.c
> +++ b/arch/s390/boot/uv.c
> @@ -45,6 +45,8 @@ void uv_query_info(void)
>   		uv_info.supp_se_hdr_pcf = uvcb.supp_se_hdr_pcf;
>   		uv_info.conf_dump_storage_state_len = uvcb.conf_dump_storage_state_len;
>   		uv_info.conf_dump_finalize_len = uvcb.conf_dump_finalize_len;
> +		uv_info.supp_att_req_hdr_ver = uvcb.supp_att_req_hdr_ver;
> +		uv_info.supp_att_pflags = uvcb.supp_att_pflags;
>   	}
>   
>   #ifdef CONFIG_PROTECTED_VIRTUALIZATION_GUEST
> diff --git a/arch/s390/include/asm/uv.h b/arch/s390/include/asm/uv.h
> index 3e597bb634bd..18fe04c8547e 100644
> --- a/arch/s390/include/asm/uv.h
> +++ b/arch/s390/include/asm/uv.h
> @@ -124,7 +124,10 @@ struct uv_cb_qui {
>   	u64 reservedc0;				/* 0x00c0 */
>   	u64 conf_dump_storage_state_len;	/* 0x00c8 */
>   	u64 conf_dump_finalize_len;		/* 0x00d0 */
> -	u8  reservedd8[256 - 216];		/* 0x00d8 */
> +	u64 reservedd8;				/* 0x00d8 */
> +	u64 supp_att_req_hdr_ver;		/* 0x00e0 */
> +	u64 supp_att_pflags;			/* 0x00e8 */
> +	u8 reservedf0[256 - 240];		/* 0x00f0 */
>   } __packed __aligned(8);
>   
>   /* Initialize Ultravisor */
> @@ -350,6 +353,8 @@ struct uv_info {
>   	unsigned long supp_se_hdr_pcf;
>   	unsigned long conf_dump_storage_state_len;
>   	unsigned long conf_dump_finalize_len;
> +	unsigned long supp_att_req_hdr_ver;
> +	unsigned long supp_att_pflags;
>   };
>   
>   extern struct uv_info uv_info;
> diff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c
> index 84fe33b6af4d..c13d5a7b71f0 100644
> --- a/arch/s390/kernel/uv.c
> +++ b/arch/s390/kernel/uv.c
> @@ -479,6 +479,24 @@ static ssize_t uv_query_max_guest_addr(struct kobject *kobj,
>   static struct kobj_attribute uv_query_max_guest_addr_attr =
>   	__ATTR(max_address, 0444, uv_query_max_guest_addr, NULL);
>   
> +static ssize_t uv_query_supp_att_req_hdr_ver(struct kobject *kobj,
> +					     struct kobj_attribute *attr, char *page)
> +{
> +	return scnprintf(page, PAGE_SIZE, "%lx\n", uv_info.supp_att_req_hdr_ver);
> +}
> +
> +static struct kobj_attribute uv_query_supp_att_req_hdr_ver_attr =
> +	__ATTR(supp_att_req_hdr_ver, 0444, uv_query_supp_att_req_hdr_ver, NULL);
> +
> +static ssize_t uv_query_supp_att_pflags(struct kobject *kobj,
> +					struct kobj_attribute *attr, char *page)
> +{
> +	return scnprintf(page, PAGE_SIZE, "%lx\n", uv_info.supp_att_pflags);
> +}
> +
> +static struct kobj_attribute uv_query_supp_att_pflags_attr =
> +	__ATTR(supp_att_pflags, 0444, uv_query_supp_att_pflags, NULL);
> +
>   static struct attribute *uv_query_attrs[] = {
>   	&uv_query_facilities_attr.attr,
>   	&uv_query_feature_indications_attr.attr,
> @@ -490,6 +508,8 @@ static struct attribute *uv_query_attrs[] = {
>   	&uv_query_dump_storage_state_len_attr.attr,
>   	&uv_query_dump_finalize_len_attr.attr,
>   	&uv_query_dump_cpu_len_attr.attr,
> +	&uv_query_supp_att_req_hdr_ver_attr.attr,
> +	&uv_query_supp_att_pflags_attr.attr,
>   	NULL,
>   };
>   


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

* Re: [PATCH v2 1/1] s390: Add attestation query information
  2022-05-18 13:59 ` [PATCH v2 1/1] " Steffen Eiden
  2022-05-20 14:48   ` Janosch Frank
@ 2022-05-24 14:55   ` Claudio Imbrenda
  2022-06-01 10:02   ` Steffen Eiden
  2 siblings, 0 replies; 7+ messages in thread
From: Claudio Imbrenda @ 2022-05-24 14:55 UTC (permalink / raw)
  To: Steffen Eiden
  Cc: Heiko Carstens, Christian Borntraeger, Janosch Frank, Nico Boehr,
	linux-s390, linux-kernel

On Wed, 18 May 2022 13:59:08 +0000
Steffen Eiden <seiden@linux.ibm.com> wrote:

> We have information about the supported attestation header version
> and plaintext attestation flag bits.
> Let's expose it via the sysfs files.
> 
> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>

when you have fixed the commit message as indicated by Heiko:

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

> ---
>  arch/s390/boot/uv.c        |  2 ++
>  arch/s390/include/asm/uv.h |  7 ++++++-
>  arch/s390/kernel/uv.c      | 20 ++++++++++++++++++++
>  3 files changed, 28 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/s390/boot/uv.c b/arch/s390/boot/uv.c
> index 67c737c1e580..a5fa667160b2 100644
> --- a/arch/s390/boot/uv.c
> +++ b/arch/s390/boot/uv.c
> @@ -45,6 +45,8 @@ void uv_query_info(void)
>  		uv_info.supp_se_hdr_pcf = uvcb.supp_se_hdr_pcf;
>  		uv_info.conf_dump_storage_state_len = uvcb.conf_dump_storage_state_len;
>  		uv_info.conf_dump_finalize_len = uvcb.conf_dump_finalize_len;
> +		uv_info.supp_att_req_hdr_ver = uvcb.supp_att_req_hdr_ver;
> +		uv_info.supp_att_pflags = uvcb.supp_att_pflags;
>  	}
>  
>  #ifdef CONFIG_PROTECTED_VIRTUALIZATION_GUEST
> diff --git a/arch/s390/include/asm/uv.h b/arch/s390/include/asm/uv.h
> index 3e597bb634bd..18fe04c8547e 100644
> --- a/arch/s390/include/asm/uv.h
> +++ b/arch/s390/include/asm/uv.h
> @@ -124,7 +124,10 @@ struct uv_cb_qui {
>  	u64 reservedc0;				/* 0x00c0 */
>  	u64 conf_dump_storage_state_len;	/* 0x00c8 */
>  	u64 conf_dump_finalize_len;		/* 0x00d0 */
> -	u8  reservedd8[256 - 216];		/* 0x00d8 */
> +	u64 reservedd8;				/* 0x00d8 */
> +	u64 supp_att_req_hdr_ver;		/* 0x00e0 */
> +	u64 supp_att_pflags;			/* 0x00e8 */
> +	u8 reservedf0[256 - 240];		/* 0x00f0 */
>  } __packed __aligned(8);
>  
>  /* Initialize Ultravisor */
> @@ -350,6 +353,8 @@ struct uv_info {
>  	unsigned long supp_se_hdr_pcf;
>  	unsigned long conf_dump_storage_state_len;
>  	unsigned long conf_dump_finalize_len;
> +	unsigned long supp_att_req_hdr_ver;
> +	unsigned long supp_att_pflags;
>  };
>  
>  extern struct uv_info uv_info;
> diff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c
> index 84fe33b6af4d..c13d5a7b71f0 100644
> --- a/arch/s390/kernel/uv.c
> +++ b/arch/s390/kernel/uv.c
> @@ -479,6 +479,24 @@ static ssize_t uv_query_max_guest_addr(struct kobject *kobj,
>  static struct kobj_attribute uv_query_max_guest_addr_attr =
>  	__ATTR(max_address, 0444, uv_query_max_guest_addr, NULL);
>  
> +static ssize_t uv_query_supp_att_req_hdr_ver(struct kobject *kobj,
> +					     struct kobj_attribute *attr, char *page)
> +{
> +	return scnprintf(page, PAGE_SIZE, "%lx\n", uv_info.supp_att_req_hdr_ver);
> +}
> +
> +static struct kobj_attribute uv_query_supp_att_req_hdr_ver_attr =
> +	__ATTR(supp_att_req_hdr_ver, 0444, uv_query_supp_att_req_hdr_ver, NULL);
> +
> +static ssize_t uv_query_supp_att_pflags(struct kobject *kobj,
> +					struct kobj_attribute *attr, char *page)
> +{
> +	return scnprintf(page, PAGE_SIZE, "%lx\n", uv_info.supp_att_pflags);
> +}
> +
> +static struct kobj_attribute uv_query_supp_att_pflags_attr =
> +	__ATTR(supp_att_pflags, 0444, uv_query_supp_att_pflags, NULL);
> +
>  static struct attribute *uv_query_attrs[] = {
>  	&uv_query_facilities_attr.attr,
>  	&uv_query_feature_indications_attr.attr,
> @@ -490,6 +508,8 @@ static struct attribute *uv_query_attrs[] = {
>  	&uv_query_dump_storage_state_len_attr.attr,
>  	&uv_query_dump_finalize_len_attr.attr,
>  	&uv_query_dump_cpu_len_attr.attr,
> +	&uv_query_supp_att_req_hdr_ver_attr.attr,
> +	&uv_query_supp_att_pflags_attr.attr,
>  	NULL,
>  };
>  


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

* Re: [PATCH v2 1/1] s390: Add attestation query information
  2022-05-18 13:59 ` [PATCH v2 1/1] " Steffen Eiden
  2022-05-20 14:48   ` Janosch Frank
  2022-05-24 14:55   ` Claudio Imbrenda
@ 2022-06-01 10:02   ` Steffen Eiden
  2022-06-23  6:26     ` Janosch Frank
  2 siblings, 1 reply; 7+ messages in thread
From: Steffen Eiden @ 2022-06-01 10:02 UTC (permalink / raw)
  To: seiden; +Cc: borntraeger, frankja, hca, imbrenda, linux-kernel, linux-s390, nrb

By design the uv-device does not check whether an incoming attestation
measurement request only specifies valid plain text flags or has the
right request version, as these values are verified by the Ultravisor
anyway. However, the userspace program that generates these requests
might want to know which flags/versions are supported in order to
create requests without trial and error. Therefore, expose the
supported plain text flags and versions to userspace via sysfs.

Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
---
 arch/s390/boot/uv.c        |  2 ++
 arch/s390/include/asm/uv.h |  7 ++++++-
 arch/s390/kernel/uv.c      | 20 ++++++++++++++++++++
 3 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/arch/s390/boot/uv.c b/arch/s390/boot/uv.c
index 67c737c1e580..a5fa667160b2 100644
--- a/arch/s390/boot/uv.c
+++ b/arch/s390/boot/uv.c
@@ -45,6 +45,8 @@ void uv_query_info(void)
 		uv_info.supp_se_hdr_pcf = uvcb.supp_se_hdr_pcf;
 		uv_info.conf_dump_storage_state_len = uvcb.conf_dump_storage_state_len;
 		uv_info.conf_dump_finalize_len = uvcb.conf_dump_finalize_len;
+		uv_info.supp_att_req_hdr_ver = uvcb.supp_att_req_hdr_ver;
+		uv_info.supp_att_pflags = uvcb.supp_att_pflags;
 	}
 
 #ifdef CONFIG_PROTECTED_VIRTUALIZATION_GUEST
diff --git a/arch/s390/include/asm/uv.h b/arch/s390/include/asm/uv.h
index 3e597bb634bd..18fe04c8547e 100644
--- a/arch/s390/include/asm/uv.h
+++ b/arch/s390/include/asm/uv.h
@@ -124,7 +124,10 @@ struct uv_cb_qui {
 	u64 reservedc0;				/* 0x00c0 */
 	u64 conf_dump_storage_state_len;	/* 0x00c8 */
 	u64 conf_dump_finalize_len;		/* 0x00d0 */
-	u8  reservedd8[256 - 216];		/* 0x00d8 */
+	u64 reservedd8;				/* 0x00d8 */
+	u64 supp_att_req_hdr_ver;		/* 0x00e0 */
+	u64 supp_att_pflags;			/* 0x00e8 */
+	u8 reservedf0[256 - 240];		/* 0x00f0 */
 } __packed __aligned(8);
 
 /* Initialize Ultravisor */
@@ -350,6 +353,8 @@ struct uv_info {
 	unsigned long supp_se_hdr_pcf;
 	unsigned long conf_dump_storage_state_len;
 	unsigned long conf_dump_finalize_len;
+	unsigned long supp_att_req_hdr_ver;
+	unsigned long supp_att_pflags;
 };
 
 extern struct uv_info uv_info;
diff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c
index 84fe33b6af4d..c13d5a7b71f0 100644
--- a/arch/s390/kernel/uv.c
+++ b/arch/s390/kernel/uv.c
@@ -479,6 +479,24 @@ static ssize_t uv_query_max_guest_addr(struct kobject *kobj,
 static struct kobj_attribute uv_query_max_guest_addr_attr =
 	__ATTR(max_address, 0444, uv_query_max_guest_addr, NULL);
 
+static ssize_t uv_query_supp_att_req_hdr_ver(struct kobject *kobj,
+					     struct kobj_attribute *attr, char *page)
+{
+	return scnprintf(page, PAGE_SIZE, "%lx\n", uv_info.supp_att_req_hdr_ver);
+}
+
+static struct kobj_attribute uv_query_supp_att_req_hdr_ver_attr =
+	__ATTR(supp_att_req_hdr_ver, 0444, uv_query_supp_att_req_hdr_ver, NULL);
+
+static ssize_t uv_query_supp_att_pflags(struct kobject *kobj,
+					struct kobj_attribute *attr, char *page)
+{
+	return scnprintf(page, PAGE_SIZE, "%lx\n", uv_info.supp_att_pflags);
+}
+
+static struct kobj_attribute uv_query_supp_att_pflags_attr =
+	__ATTR(supp_att_pflags, 0444, uv_query_supp_att_pflags, NULL);
+
 static struct attribute *uv_query_attrs[] = {
 	&uv_query_facilities_attr.attr,
 	&uv_query_feature_indications_attr.attr,
@@ -490,6 +508,8 @@ static struct attribute *uv_query_attrs[] = {
 	&uv_query_dump_storage_state_len_attr.attr,
 	&uv_query_dump_finalize_len_attr.attr,
 	&uv_query_dump_cpu_len_attr.attr,
+	&uv_query_supp_att_req_hdr_ver_attr.attr,
+	&uv_query_supp_att_pflags_attr.attr,
 	NULL,
 };
 
-- 
2.30.2


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

* Re: [PATCH v2 1/1] s390: Add attestation query information
  2022-06-01 10:02   ` Steffen Eiden
@ 2022-06-23  6:26     ` Janosch Frank
  0 siblings, 0 replies; 7+ messages in thread
From: Janosch Frank @ 2022-06-23  6:26 UTC (permalink / raw)
  To: Steffen Eiden; +Cc: borntraeger, hca, imbrenda, linux-kernel, linux-s390, nrb

On 6/1/22 12:02, Steffen Eiden wrote:
> By design the uv-device does not check whether an incoming attestation
> measurement request only specifies valid plain text flags or has the
> right request version, as these values are verified by the Ultravisor
> anyway. However, the userspace program that generates these requests
> might want to know which flags/versions are supported in order to
> create requests without trial and error. Therefore, expose the
> supported plain text flags and versions to userspace via sysfs.
> 
> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
> Reviewed-by: Janosch Frank <frankja@linux.ibm.com
> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

Thanks, queued

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

end of thread, other threads:[~2022-06-23  6:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18 13:59 [PATCH v2 0/1] s390: Add attestation query information Steffen Eiden
2022-05-18 13:59 ` [PATCH v2 1/1] " Steffen Eiden
2022-05-20 14:48   ` Janosch Frank
2022-05-24 14:55   ` Claudio Imbrenda
2022-06-01 10:02   ` Steffen Eiden
2022-06-23  6:26     ` Janosch Frank
2022-05-20 11:11 ` [PATCH v2 0/1] " Heiko Carstens

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.