Skip to contentSkip to conversation

SUPPORT.md: add Dom0less as Supported

PATCH Superseded Stefano Stabellini 4 participants 7 messages Jul 14, 2021 – Apr 8, 2022

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 SUPPORT.md: add Dom0less as Supported

Add Dom0less to SUPPORT.md to clarify its support status. The feature is mature enough and small enough to make it security supported.

---
Changes in v2:
- clarify memory scrubbing

---
 SUPPORT.md | 9 +++++++++
 1 file changed, 9 insertions(+)
SUPPORT.md +9 -0
index 317392d8f3..524cab9c8d 100644
@@ -832,6 +832,15 @@ OVMF firmware implements the UEFI boot protocol.
 
     Status, qemu-xen: Supported
 
+## Dom0less
+
+Guest creation from the hypervisor at boot without Dom0 intervention.
+
+    Status, ARM: Supported
+
+Memory of dom0less DomUs is not scrubbed at boot (even with
+bootscrub=on); no XSAs will be issues due to unscrubbed memory.
+
 # Format and definitions
 
 This file contains prose, and machine-readable fragments.
Signature · 1 line
2.17.1
Reviewed-by on v2 1/1
#1 lore raw

Hi Stefano,

Quoted 6 lines · Stefano Stabellini

Add Dom0less to SUPPORT.md to clarify its support status. The feature is mature enough and small enough to make it security supported.

Cheers
Bertrand

Quoted 31 lines

---
Changes in v2:
- clarify memory scrubbing
---
SUPPORT.md | 9 +++++++++

1 file changed, 9 insertions(+)
SUPPORT.md +9 -0
index 317392d8f3..524cab9c8d 100644
@@ -832,6 +832,15 @@ OVMF firmware implements the UEFI boot protocol.
 
    Status, qemu-xen: Supported
 
+## Dom0less
+
+Guest creation from the hypervisor at boot without Dom0 intervention.
+
+    Status, ARM: Supported
+
+Memory of dom0less DomUs is not scrubbed at boot (even with
+bootscrub=on); no XSAs will be issues due to unscrubbed memory.
+
 # Format and definitions
 

This file contains prose, and machine-readable fragments.

Signature · 1 line
2.17.1
#2 lore raw
In reply to Stefano Stabellini

Hi Stefano,

Quoted 2 lines · Stefano Stabellini

Add Dom0less to SUPPORT.md to clarify its support status. The feature is mature enough and small enough to make it security supported.

I would suggest to explain the restriction in the commit message (and give a link to XSA-372 commit).

Quoted 14 lines

---
Changes in v2:
- clarify memory scrubbing

---
  SUPPORT.md | 9 +++++++++
  1 file changed, 9 insertions(+)
SUPPORT.md +0 -0
index 317392d8f3..524cab9c8d 100644
@@ -832,6 +832,15 @@ OVMF firmware implements the UEFI boot protocol.
 

SUPPORT.md OVMF firmware implements the UEFI boot protocol. · line 842

Quoted 10 lines
SUPPORT.md +8 -0
      Status, qemu-xen: Supported
 
+## Dom0less
+
+Guest creation from the hypervisor at boot without Dom0 intervention.
+
+    Status, ARM: Supported
+
+Memory of dom0less DomUs is not scrubbed at boot (even with
+bootscrub=on); no XSAs will be issues due to unscrubbed memory.

The memory will not be scrubbed for bootscrub=on and bootscrub=off. However, it should be scrubbed for bootscrub=idle (the default).

Cheers,

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

Hi Stefano,

Quoted 2 lines · Stefano Stabellini

Add Dom0less to SUPPORT.md to clarify its support status. The feature is mature enough and small enough to make it security supported.

I would suggest to explain the restriction in the commit message (and give a link to XSA-372 commit).

Quoted 17 lines

---
Changes in v2:
- clarify memory scrubbing

---
  SUPPORT.md | 9 +++++++++
  1 file changed, 9 insertions(+)
SUPPORT.md +2 -0
index 317392d8f3..524cab9c8d 100644
@@ -832,6 +832,15 @@ OVMF firmware implements the UEFI boot protocol.
        Status, qemu-xen: Supported
  +## Dom0less
+
+Guest creation from the hypervisor at boot without Dom0 intervention.
Quoted 8 lines

SUPPORT.md OVMF firmware implements the UEFI boot protocol. · line 842

Quoted 5 lines
SUPPORT.md +5 -0
+
+    Status, ARM: Supported
+
+Memory of dom0less DomUs is not scrubbed at boot (even with
+bootscrub=on); no XSAs will be issues due to unscrubbed memory.

The memory will not be scrubbed for bootscrub=on and bootscrub=off. However, it should be scrubbed for bootscrub=idle (the default).

With bootscrub=idle, do you know if it is guaranteed to complete the scrubbing before dom0less domUs start? I assumed it wasn't guaranteed, but if it is, then we should rephrase the statement.

#4 lore raw
Quoted 36 lines · Stefano Stabellini
Quoted 26 lines · Julien Grall

Hi Stefano,

Quoted 2 lines · Stefano Stabellini

Add Dom0less to SUPPORT.md to clarify its support status. The feature is mature enough and small enough to make it security supported.

I would suggest to explain the restriction in the commit message (and give a link to XSA-372 commit).

Quoted 17 lines

---
Changes in v2:
- clarify memory scrubbing

---
  SUPPORT.md | 9 +++++++++
  1 file changed, 9 insertions(+)
SUPPORT.md +2 -0
index 317392d8f3..524cab9c8d 100644
@@ -832,6 +832,15 @@ OVMF firmware implements the UEFI boot protocol.
        Status, qemu-xen: Supported
  +## Dom0less
+
+Guest creation from the hypervisor at boot without Dom0 intervention.
Quoted 8 lines

SUPPORT.md OVMF firmware implements the UEFI boot protocol. · line 842

Quoted 5 lines
SUPPORT.md +5 -0
+
+    Status, ARM: Supported
+
+Memory of dom0less DomUs is not scrubbed at boot (even with
+bootscrub=on); no XSAs will be issues due to unscrubbed memory.

The memory will not be scrubbed for bootscrub=on and bootscrub=off. However, it should be scrubbed for bootscrub=idle (the default).

Quoted 3 lines

With bootscrub=idle, do you know if it is guaranteed to complete the scrubbing before dom0less domUs start? I assumed it wasn't guaranteed, but if it is, then we should rephrase the statement.

Idle scrubbing never touches pages already owned by a domain. Hence the question isn't whether scrubbing happens before these DomU-s start, but whether they have their memory scrubbed before or while being allocated / assigned to them. init_heap_pages() has

    if ( system_state < SYS_STATE_active && opt_bootscrub == BOOTSCRUB_IDLE )
        idle_scrub = true;

i.e. all memory given to the page allocator early enough will be _marked_ for scrubbing. If idle scrubbing didn't make it far enough, alloc_heap_pages() will recognize this and scrub the page(s) synchronously (of course unless passed MEMF_no_scrub).

Jan

#5 lore raw
In reply to Stefano Stabellini

Hi Stefano,

Quoted 4 lines · Stefano Stabellini

Add Dom0less to SUPPORT.md to clarify its support status. The feature is mature enough and small enough to make it security supported.

I was going through my inbox and notice this was no follow-up. Dom0less is getting more traction, so I think it would be good for us to have a support statement.

Is it still under your radar?

Cheers,

Signature · 1 line
Julien Grall
#6 lore raw
Quoted 6 lines · Julien Grall

Hi Stefano,

Quoted 3 lines · Stefano Stabellini

Add Dom0less to SUPPORT.md to clarify its support status. The feature is mature enough and small enough to make it security supported.

Quoted 7 lines
Quoted 1 line

I was going through my inbox and notice this was no follow-up. Dom0less is getting more traction, so I think it would be good for us to have a support statement.

Is it still under your radar?

Totally fell through the cracks. I'll resend.