From 73eda71028ce372bb0b0010ca9836025101bff8a Mon Sep 17 00:00:00 2001 From: Tony Krowiak Date: Mon, 27 Apr 2015 17:57:27 -0400 Subject: [PATCH] libvirt: Introduce protected key mgmt ops Two new domain configuration XML elements are added to enable/disable the protected key management operations for a guest: ... ... Signed-off-by: Tony Krowiak Signed-off-by: Viktor Mihajlovski Signed-off-by: Daniel Hansel Reviewed-by: Boris Fiuczynski Signed-off-by: Michal Privoznik --- docs/formatdomain.html.in | 39 +++++++++ docs/schemas/domaincommon.rng | 21 +++++ src/conf/domain_conf.c | 156 ++++++++++++++++++++++++++++++++++ src/conf/domain_conf.h | 17 ++++ src/libvirt_private.syms | 2 + 5 files changed, 235 insertions(+) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index e0b6ba704f..eb3aacd436 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -6227,6 +6227,45 @@ qemu-kvm -net nic,model=? /dev/null being on a file system that lacks security labeling.

+

Key Wrap

+ +

The content of the optional keywrap element specifies + whether the guest will be allowed to perform the S390 cryptographic key + management operations. A clear key can be protected by encrypting it + under a unique wrapping key that is generated for each guest VM running + on the host. Two variations of wrapping keys are generated: one version + for encrypting protected keys using the DEA/TDEA algorithm, and another + version for keys encrypted using the AES algorithm. If a + keywrap element is not included, the guest will be granted + access to both AES and DEA/TDEA key wrapping by default.

+ +
+<domain>
+  ...
+  <keywrap>
+    <cipher name='aes' state='off'/>
+  </keywrap>
+  ...
+</domain>
+
+

+ At least one cipher element must be nested within the + keywrap element. +

+
+
cipher
+
The name attribute identifies the algorithm + for encrypting a protected key. The values supported for this attribute + are aes for encryption under the AES wrapping key, or + dea for encryption under the DEA/TDEA wrapping key. The + state attribute indicates whether the cryptographic key + management operations should be turned on for the specified encryption + algorithm. The value can be set to on or off. +
+
+ +

Note: DEA/TDEA is synonymous with DES/TDES.

+

Example configs

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index c151e92974..64a094b5ad 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -67,6 +67,9 @@ + + + @@ -382,6 +385,24 @@ + + + + + + + aes + dea + + + + + + + + + +