* [PATCH] xsm/flask: Fix XSM support for HVMOP_track_dirty_vram
@ 2013-07-02 10:03 Aurelien Chartier
2013-07-02 14:54 ` Daniel De Graaf
0 siblings, 1 reply; 2+ messages in thread
From: Aurelien Chartier @ 2013-07-02 10:03 UTC (permalink / raw)
To: xen-devel; +Cc: dgdegra, Aurelien Chartier, jbeulich
This patch is intended for Xen 4.1 branch.
The XSM check for HVMOP_track_dirty_vram is done with a call to xsm_hvm_param,
therefore the switch handling that case should be located in flask_hvm_param
and not in flask_hvmcontext.
This was fixed upstream by the two following patches :
* 875756ca34fabc7243c4a682ffd7008710a907e2 (add case in flask_hvm_param)
* 652f94327383c5517b709f0a3e4b970216b3d375 (remove case from flask_hvmcontext)
Signed-off-by: Aurelien Chartier <aurelien.chartier@citrix.com>
---
xen/xsm/flask/hooks.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/xen/xsm/flask/hooks.c b/xen/xsm/flask/hooks.c
index 02a0d20..8f49e67 100644
--- a/xen/xsm/flask/hooks.c
+++ b/xen/xsm/flask/hooks.c
@@ -844,9 +844,6 @@ static int flask_hvmcontext(struct domain *d, uint32_t cmd)
case XEN_DOMCTL_gethvmcontext_partial:
perm = HVM__GETHVMC;
break;
- case HVMOP_track_dirty_vram:
- perm = HVM__TRACKDIRTYVRAM;
- break;
default:
return -EPERM;
}
@@ -885,6 +882,9 @@ static int flask_hvm_param(struct domain *d, unsigned long op)
case HVMOP_get_param:
perm = HVM__GETPARAM;
break;
+ case HVMOP_track_dirty_vram:
+ perm = HVM__TRACKDIRTYVRAM;
+ break;
default:
return -EPERM;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] xsm/flask: Fix XSM support for HVMOP_track_dirty_vram
2013-07-02 10:03 [PATCH] xsm/flask: Fix XSM support for HVMOP_track_dirty_vram Aurelien Chartier
@ 2013-07-02 14:54 ` Daniel De Graaf
0 siblings, 0 replies; 2+ messages in thread
From: Daniel De Graaf @ 2013-07-02 14:54 UTC (permalink / raw)
To: Aurelien Chartier; +Cc: jbeulich, xen-devel
On 07/02/2013 06:03 AM, Aurelien Chartier wrote:
> This patch is intended for Xen 4.1 branch.
>
> The XSM check for HVMOP_track_dirty_vram is done with a call to xsm_hvm_param,
> therefore the switch handling that case should be located in flask_hvm_param
> and not in flask_hvmcontext.
>
> This was fixed upstream by the two following patches :
> * 875756ca34fabc7243c4a682ffd7008710a907e2 (add case in flask_hvm_param)
> * 652f94327383c5517b709f0a3e4b970216b3d375 (remove case from flask_hvmcontext)
>
> Signed-off-by: Aurelien Chartier <aurelien.chartier@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-02 14:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-02 10:03 [PATCH] xsm/flask: Fix XSM support for HVMOP_track_dirty_vram Aurelien Chartier
2013-07-02 14:54 ` Daniel De Graaf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).