Skip to contentSkip to conversation

xsm: Permit dom0 to use dmops

PATCH In review Andrew Cooper 4 participants 4 messages Jan 27, 2017 – Jan 30, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xsm: Permit dom0 to use dmops

c/s 524a98c2ac5 "public / x86: introduce __HYPERCALL_dm_op" gave flask permisisons for a stubdomain to use dmops, but omitted the case of a device model running in dom0.

---
CC: Paul Durrant <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Daniel De Graaf <[email protected]>
CC: Jan Beulich <[email protected]>

---
 tools/flask/policy/modules/xen.if | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/flask/policy/modules/xen.if +1 -1
index f5d254f..ed0df4f 100644
@@ -58,7 +58,7 @@ define(`create_domain_common', `
 	allow $1 $2:mmu { map_read map_write adjust memorymap physmap pinpage mmuext_op updatemp };
 	allow $1 $2:grant setup;
 	allow $1 $2:hvm { cacheattr getparam hvmctl sethvmc
-			setparam nested altp2mhvm altp2mhvm_op };
+			setparam nested altp2mhvm altp2mhvm_op dm };
 ')
 
 # create_domain(priv, target)
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Tested-by
#2 lore raw
Quoted 11 lines

-----Original Message-----
From: Wei Liu [mailto:[email protected]]
Sent: 27 January 2017 14:33
To: Andrew Cooper <[email protected]>
Cc: Xen-devel <[email protected]>; Paul Durrant <[email protected]>; Ian Jackson <[email protected]>; Wei Liu <[email protected]>; Daniel De Graaf <[email protected]>; Jan Beulich <[email protected]>
Subject: Re: [PATCH] xsm: Permit dom0 to use dmops

On Fri, Jan 27, 2017 at 02:16:58PM +0000, Andrew Cooper wrote:

Quoted 8 lines
Quoted 2 lines

c/s 524a98c2ac5 "public / x86: introduce __HYPERCALL_dm_op" gave flask permisisons for a stubdomain to use dmops, but omitted the case of a

device

Quoted 3 lines

model running in dom0.

I was unable to boot a guest under a flask enabled Xen without this patch, and able to boot after applying the patch so...

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#3 lore raw

Paul Durrant writes ("RE: [PATCH] xsm: Permit dom0 to use dmops"):

Quoted 3 lines

I was unable to boot a guest under a flask enabled Xen without this patch, and able to boot after applying the patch so...

In order to get staging un-broken I have pushed this now, even though it's not had an ack from an XSM maintainer.

Daniel: your review would still be appreciated.

Thanks,
Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel