xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] QEMU/xen: simplify cpu_ioreq_pio and cpu_ioreq_move
@ 2012-09-10 18:04 Stefano Stabellini
  2012-09-10 18:06 ` [PATCH 1/2] i should be uint32_t rather than int Stefano Stabellini
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Stefano Stabellini @ 2012-09-10 18:04 UTC (permalink / raw)
  To: xen-devel; +Cc: dongxiao.xu, Ian Jackson, qemu-devel, Stefano Stabellini

Hi all,
after reviewing the patch "fix multiply issue for int and uint types"
with Ian Jackson, we realized that cpu_ioreq_pio and cpu_ioreq_move are
in much need for a simplification as well as removal of a possible
integer overflow.

This patch series tries to accomplish both switching to two new helper
functions and using a more obvious arithmetic. Doing so it should also
fix the original problem that Dongxiao was experiencing. The C language
can be a nasty backstabber when signed and unsigned integers are
involved.

The current patch series if for qemu-xen-traditional but if the patches
are deemed correct I'll submit an equivalent set for QEMU upstream (with
the appropriate code style changes).



Stefano Stabellini (2):
      i should be uint32_t rather than int
      introduce read_physical_offset and write_physical_offset

 i386-dm/helper2.c |   66 +++++++++++++++++++++++++++++++++-------------------
 1 files changed, 42 insertions(+), 24 deletions(-)



Cheers,

Stefano

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2013-02-20 15:53 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-10 18:04 [PATCH 0/2] QEMU/xen: simplify cpu_ioreq_pio and cpu_ioreq_move Stefano Stabellini
2012-09-10 18:06 ` [PATCH 1/2] i should be uint32_t rather than int Stefano Stabellini
2012-09-10 18:06 ` [PATCH 2/2] introduce read_physical_offset and write_physical_offset Stefano Stabellini
2012-09-17 23:18 ` [PATCH 0/2] QEMU/xen: simplify cpu_ioreq_pio and cpu_ioreq_move Xu, Dongxiao
2012-09-18 10:24   ` Stefano Stabellini
2012-11-29  3:22     ` Xu, Dongxiao
2012-11-29 13:21       ` Stefano Stabellini
2012-11-29 13:57         ` [Xen-devel] " Ian Campbell
2012-11-29 15:10           ` Pasi Kärkkäinen
2012-12-07 16:14 ` [Xen-devel] " Ian Jackson
2012-12-07 16:30   ` Ian Campbell
2012-12-07 16:33     ` [Xen-devel] " Ian Jackson
2012-12-11  5:50       ` Xu, Dongxiao
2013-01-08  1:49       ` Xu, Dongxiao
2013-01-09  7:09         ` Pasi Kärkkäinen
2013-01-24 13:44           ` [Xen-devel] [PATCH 0/2] QEMU/xen: simplify cpu_ioreq_pio and cpu_ioreq_move / Xen on Xen nested virt Pasi Kärkkäinen
2013-01-31  2:23             ` Xu, Dongxiao
2013-02-19 19:38             ` Pasi Kärkkäinen
2013-02-20 15:42               ` Ian Jackson
2013-02-20 15:53                 ` Pasi Kärkkäinen
2012-12-10 16:08   ` [Xen-devel] [PATCH 0/2] QEMU/xen: simplify cpu_ioreq_pio and cpu_ioreq_move Stefano Stabellini
2012-12-10 17:01     ` Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).