[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86emul: MSR indexes are only 32 bits wide
commit 3a8be001bb793ad0f05489913808919783890008 Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Mon Feb 15 14:15:12 2016 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Mon Feb 15 14:15:12 2016 +0100 x86emul: MSR indexes are only 32 bits wide ... and hence the respective {read,write}_msr() hook parameter doesn't need to be "unsigned long". Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/hvm/emulate.c | 6 +++--- xen/arch/x86/x86_emulate/x86_emulate.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c index f5dd1f8..fef7905 100644 --- a/xen/arch/x86/hvm/emulate.c +++ b/xen/arch/x86/hvm/emulate.c @@ -966,7 +966,7 @@ static int hvmemul_write_io_discard( } static int hvmemul_write_msr_discard( - unsigned long reg, + unsigned int reg, uint64_t val, struct x86_emulate_ctxt *ctxt) { @@ -1439,7 +1439,7 @@ static int hvmemul_write_cr( } static int hvmemul_read_msr( - unsigned long reg, + unsigned int reg, uint64_t *val, struct x86_emulate_ctxt *ctxt) { @@ -1447,7 +1447,7 @@ static int hvmemul_read_msr( } static int hvmemul_write_msr( - unsigned long reg, + unsigned int reg, uint64_t val, struct x86_emulate_ctxt *ctxt) { diff --git a/xen/arch/x86/x86_emulate/x86_emulate.h b/xen/arch/x86/x86_emulate/x86_emulate.h index 9e4bca9..3a1bb46 100644 --- a/xen/arch/x86/x86_emulate/x86_emulate.h +++ b/xen/arch/x86/x86_emulate/x86_emulate.h @@ -334,7 +334,7 @@ struct x86_emulate_ops * @reg: [IN ] Register to read. */ int (*read_msr)( - unsigned long reg, + unsigned int reg, uint64_t *val, struct x86_emulate_ctxt *ctxt); @@ -343,7 +343,7 @@ struct x86_emulate_ops * @reg: [IN ] Register to write. */ int (*write_msr)( - unsigned long reg, + unsigned int reg, uint64_t val, struct x86_emulate_ctxt *ctxt); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |