]> git.ipfire.org Git - thirdparty/qemu.git/commit - xen-hvm.c
cpu_ioreq_pio, cpu_ioreq_move: introduce read_phys_req_item, write_phys_req_item
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 17 Dec 2012 11:43:19 +0000 (11:43 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 17 Dec 2012 11:43:19 +0000 (11:43 +0000)
commita38648290ee277c7cb8a53eabdcdb08bb7a9f23f
tree08fcf5b90461b52d98bd2c30687005cf1dce8a2f
parentf1b8caf1d927f30f66054733a783651a24db4999
cpu_ioreq_pio, cpu_ioreq_move: introduce read_phys_req_item, write_phys_req_item

Replace a lot of formulaic multiplications (containing casts, no less)
with calls to a pair of functions.  This encapsulates in a single
place the operations which require care relating to integer overflow.

Cc: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-all.c