Skip to contentSkip to conversation

arm/domain: fix comment for arch_set_info_guest

PATCH In review Luca Fancellu 2 participants 5 messages Aug 5, 2022 – Aug 22, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/domain: fix comment for arch_set_info_guest

The function arch_set_info_guest is not reached anymore through VCPUOP_initialise on arm, update the comment.

---
Changes in v2:
- rephrased comment to not list caller functions (Julien)

---
 xen/arch/arm/domain.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
xen/arch/arm/domain.c +2 -3
index 2cd481979cf1..9db8a37a089c 100644
@@ -885,9 +885,8 @@ static int is_guest_pv64_psr(uint64_t psr)
 #endif
 
 /*
- * Initialise VCPU state. The context can be supplied by either the
- * toolstack (XEN_DOMCTL_setvcpucontext) or the guest
- * (VCPUOP_initialise) and therefore must be properly validated.
+ * Initialise vCPU state. The context may be supplied by an external entity, so
+ * we need to validate it
  */
 int arch_set_info_guest(
     struct vcpu *v, vcpu_guest_context_u c)
Signature · 1 line
2.17.1
#1 lore raw
Quoted 8 lines · Luca Fancellu

The function arch_set_info_guest is not reached anymore through VCPUOP_initialise on arm, update the comment.

Hi All,

Sorry I forgot to put v2 in the tag.

Cheers,
Luca

Quoted 27 lines

---
Changes in v2:
- rephrased comment to not list caller functions (Julien)
---
xen/arch/arm/domain.c | 5 ++---

1 file changed, 2 insertions(+), 3 deletions(-)
xen/arch/arm/domain.c +2 -3
index 2cd481979cf1..9db8a37a089c 100644
@@ -885,9 +885,8 @@ static int is_guest_pv64_psr(uint64_t psr)
 #endif
 
 /*
- * Initialise VCPU state. The context can be supplied by either the
- * toolstack (XEN_DOMCTL_setvcpucontext) or the guest
- * (VCPUOP_initialise) and therefore must be properly validated.
+ * Initialise vCPU state. The context may be supplied by an external entity, so
+ * we need to validate it
 */

int arch_set_info_guest(
struct vcpu *v, vcpu_guest_context_u c)

Signature · 1 line
2.17.1
Acked-by on v1 1/1
#2 lore raw
In reply to Luca Fancellu

Hi Luca,

Quoted 16 lines · Luca Fancellu

The function arch_set_info_guest is not reached anymore through VCPUOP_initialise on arm, update the comment.

---
Changes in v2:
- rephrased comment to not list caller functions (Julien)

---
  xen/arch/arm/domain.c | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)
xen/arch/arm/domain.c +0 -0
index 2cd481979cf1..9db8a37a089c 100644

xen/arch/arm/domain.c static int is_guest_pv64_psr(uint64_t psr) · line 889

Quoted 8 lines
xen/arch/arm/domain.c +2 -3
@@ -885,9 +885,8 @@ static int is_guest_pv64_psr(uint64_t psr)
  #endif
 
  /*
- * Initialise VCPU state. The context can be supplied by either the
- * toolstack (XEN_DOMCTL_setvcpucontext) or the guest
- * (VCPUOP_initialise) and therefore must be properly validated.
+ * Initialise vCPU state. The context may be supplied by an external entity, so
+ * we need to validate it

NIT: Missing a full stop. This can be added on commit.

Cheers,

Signature · 1 line
Julien Grall
#3 lore raw
Quoted 31 lines · Julien Grall

Hi Luca,

Quoted 14 lines · Luca Fancellu

The function arch_set_info_guest is not reached anymore through VCPUOP_initialise on arm, update the comment.

---
Changes in v2:
- rephrased comment to not list caller functions (Julien)

---
 xen/arch/arm/domain.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
xen/arch/arm/domain.c +0 -0
index 2cd481979cf1..9db8a37a089c 100644

xen/arch/arm/domain.c static int is_guest_pv64_psr(uint64_t psr) · line 888

Quoted 7 lines
xen/arch/arm/domain.c +2 -3
@@ -885,9 +885,8 @@ static int is_guest_pv64_psr(uint64_t psr)
 #endif
   /*
- * Initialise VCPU state. The context can be supplied by either the
- * toolstack (XEN_DOMCTL_setvcpucontext) or the guest
- * (VCPUOP_initialise) and therefore must be properly validated.
+ * Initialise vCPU state. The context may be supplied by an external entity, so
+ * we need to validate it

NIT: Missing a full stop. This can be added on commit.

Quoted 1 line

Hi Julien,

Any plan to commit this one? Not an important change, just asking so that I can remove it from my watch list.

Cheers,
Luca

Quoted 5 lines

Cheers,

Signature · 1 line
Julien Grall
#4 lore raw

Hi Luca,

Quoted 31 lines · Luca Fancellu
Quoted 31 lines · Julien Grall

Hi Luca,

Quoted 14 lines · Luca Fancellu

The function arch_set_info_guest is not reached anymore through VCPUOP_initialise on arm, update the comment.

---
Changes in v2:
- rephrased comment to not list caller functions (Julien)

---
  xen/arch/arm/domain.c | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)
xen/arch/arm/domain.c +0 -0
index 2cd481979cf1..9db8a37a089c 100644

xen/arch/arm/domain.c static int is_guest_pv64_psr(uint64_t psr) · line 888

Quoted 7 lines
xen/arch/arm/domain.c +2 -3
@@ -885,9 +885,8 @@ static int is_guest_pv64_psr(uint64_t psr)
  #endif
    /*
- * Initialise VCPU state. The context can be supplied by either the
- * toolstack (XEN_DOMCTL_setvcpucontext) or the guest
- * (VCPUOP_initialise) and therefore must be properly validated.
+ * Initialise vCPU state. The context may be supplied by an external entity, so
+ * we need to validate it

NIT: Missing a full stop. This can be added on commit.

Quoted 6 lines
Quoted 1 line

Hi Julien,

Any plan to commit this one? Not an important change, just asking so that I can remove it from my watch list.

Sorry for the delay. It is now pushed.

Cheers,

Signature · 1 line
Julien Grall