[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 1/2] x86/HVM: constify hvm_virtual_to_linear_addr()'s segment register parameter
... to clarify to callers that they don't need to fear the pointed to data changing (which will be made use of subsequently). Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -2411,7 +2411,7 @@ int hvm_set_cr4(unsigned long value, boo bool_t hvm_virtual_to_linear_addr( enum x86_segment seg, - struct segment_register *reg, + const struct segment_register *reg, unsigned long offset, unsigned int bytes, enum hvm_access_type access_type, --- a/xen/include/asm-x86/hvm/hvm.h +++ b/xen/include/asm-x86/hvm/hvm.h @@ -469,7 +469,7 @@ enum hvm_access_type { }; bool_t hvm_virtual_to_linear_addr( enum x86_segment seg, - struct segment_register *reg, + const struct segment_register *reg, unsigned long offset, unsigned int bytes, enum hvm_access_type access_type, Attachment:
x86-HVM-v2l-const.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |