[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen stable-4.1] xsm/flask: Fix XSM support for HVMOP_track_dirty_vram



commit 75c411d02b1b8eca02c97d32120ded0ce4146114
Author:     Aurelien Chartier <aurelien.chartier@xxxxxxxxxx>
AuthorDate: Thu Jul 4 10:46:25 2013 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Jul 4 10:46:25 2013 +0200

    xsm/flask: Fix XSM support for HVMOP_track_dirty_vram
    
    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@xxxxxxxxxx>
    Acked-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
---
 xen/xsm/flask/hooks.c |    6 +++---
 1 files 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;
     }
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.1

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.