From: Gerd Hoffmann Date: Mon, 8 Jun 2009 12:33:27 +0000 (+0200) Subject: xen nic: use XC_PAGE_SIZE instead of PAGE_SIZE. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=682aea0eaa11925518ea1a826a32a7359304c56f;p=qemu.git xen nic: use XC_PAGE_SIZE instead of PAGE_SIZE. Signed-off-by: Gerd Hoffmann --- diff --git a/hw/xen_nic.c b/hw/xen_nic.c index 5fcc701904..4206132aea 100644 --- a/hw/xen_nic.c +++ b/hw/xen_nic.c @@ -176,7 +176,7 @@ static void net_tx_packets(struct XenNetDev *netdev) if (txreq.flags & NETTXF_csum_blank) { /* have read-only mapping -> can't fill checksum in-place */ if (!tmpbuf) - tmpbuf = qemu_malloc(PAGE_SIZE); + tmpbuf = qemu_malloc(XC_PAGE_SIZE); memcpy(tmpbuf, page + txreq.offset, txreq.size); net_checksum_calculate(tmpbuf, txreq.size); qemu_send_packet(netdev->vs, tmpbuf, txreq.size);