[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xen-cvs
Subject:    [Xen-changelog] [xen master] x86/p2m: p2m_flags_to_type() deals only with "unsigned int"
From:       patchbot () xen ! org
Date:       2020-02-27 10:37:44
Message-ID: E1j7GY4-0004AJ-UZ () xenbits ! xenproject ! org
[Download RAW message or body]

commit a446a330117998a655e76c2e05ea46c01d365516
Author:     Jan Beulich <jbeulich@suse.com>
AuthorDate: Fri Feb 21 17:16:25 2020 +0100
Commit:     Jan Beulich <jbeulich@suse.com>
CommitDate: Fri Feb 21 17:16:25 2020 +0100

    x86/p2m: p2m_flags_to_type() deals only with "unsigned int"
    
    PTE flags, for now at least, get stored in "unsigned int". Hence there's
    no need to widen the values to "unsigned long" before processing them.
    
    Signed-off-by: Jan Beulich <jbeulich@suse.com>
    Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
    Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
 xen/include/asm-x86/p2m.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/include/asm-x86/p2m.h b/xen/include/asm-x86/p2m.h
index cca6a1a223..517974be54 100644
--- a/xen/include/asm-x86/p2m.h
+++ b/xen/include/asm-x86/p2m.h
@@ -796,7 +796,7 @@ extern void audit_p2m(struct domain *d,
  */
 
 /* Extract the type from the PTE flags that store it */
-static inline p2m_type_t p2m_flags_to_type(unsigned long flags)
+static inline p2m_type_t p2m_flags_to_type(unsigned int flags)
 {
     /* For AMD IOMMUs we need to use type 0 for plain RAM, but we need
      * to make sure that an entirely empty PTE doesn't have RAM type */
--
generated by git-patchbot for /home/xen/git/xen.git#master


[Attachment #3 (text/plain)]

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xenproject.org
https://lists.xenproject.org/xen-changelog

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic