[xen master] x86/hvm: fix arch_set_info_hvm_guest SEG macro

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[xen master] x86/hvm: fix arch_set_info_hvm_guest SEG macro

patchbot
commit f9c7a0ee87f23ae408a1ac4f948b96f51b911564
Author:     Roger Pau Monné <[hidden email]>
AuthorDate: Wed Aug 9 11:18:20 2017 +0100
Commit:     Andrew Cooper <[hidden email]>
CommitDate: Wed Aug 9 11:24:48 2017 +0100

    x86/hvm: fix arch_set_info_hvm_guest SEG macro
   
    Commit 6c9abf0e802 modified the SEG macro in arch_set_info_hvm_guest and
    inverted the limit and base fields. Restore the correct order.
   
    Signed-off-by: Roger Pau Monné <[hidden email]>
    Reviewed-by: Andrew Cooper <[hidden email]>
---
 xen/arch/x86/hvm/domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/x86/hvm/domain.c b/xen/arch/x86/hvm/domain.c
index 7e11541..6047464 100644
--- a/xen/arch/x86/hvm/domain.c
+++ b/xen/arch/x86/hvm/domain.c
@@ -137,7 +137,7 @@ int arch_set_info_hvm_guest(struct vcpu *v, const vcpu_hvm_context_t *ctx)
 
 #define SEG(s, r) ({                                                        \
     s = (struct segment_register)                                           \
-        { 0, { (r)->s ## _ar }, (r)->s ## _base, (r)->s ## _limit };        \
+        { 0, { (r)->s ## _ar }, (r)->s ## _limit, (r)->s ## _base };        \
     /* Set accessed / busy bit for present segments. */                     \
     if ( s.p )                                                              \
         s.type |= (x86_seg_##s != x86_seg_tr ? 1 : 2);                      \
--
generated by git-patchbot for /home/xen/git/xen.git#master


_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog
Loading...