Re: [PATCH 1 of 5] fix cpu_physical_memory len

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrea Arcangeli
Date: Friday, December 12, 2008 - 12:26 pm

On Fri, Dec 12, 2008 at 01:06:56PM -0600, Anthony Liguori wrote:

Yes, that is feasible even if the dma api output remains a raw iovec
(as it'll surely bounce, and the bouncing internally can restarts with
unsigned long long length). To explain why it's set to a size_t, it's
just that I didn't think an emulated device would ever attempt a dma
on a >4G region on a 32bit host, and I was suggested to make this
assumption by the current code that can't even handle that on a 64bit
host (I made it possible on a 64bit host, on a 64bit host it makes
some sense as there can really be that much ram allocated). For 32bit
it mostly makes sense for mmio regions but that sounds a real
weirdness to do such a large dma on a mmio region. So I thought
sticking with size_t would less prone for truncation errors and I
could the sanity checking only once (currently you'd get a graceful
driver failure with the submit handler getting an error, if you
attempt that).

But I can change to ram_addr_t if you like. It's up to you!
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0 of 5] dma api v3, Andrea Arcangeli, (Fri Dec 12, 11:16 am)
[PATCH 1 of 5] fix cpu_physical_memory len, Andrea Arcangeli, (Fri Dec 12, 11:16 am)
[PATCH 2 of 5] add can_dma/post_dma for direct IO, Andrea Arcangeli, (Fri Dec 12, 11:16 am)
[PATCH 3 of 5] rename dma.c to isa_dma.c, Andrea Arcangeli, (Fri Dec 12, 11:16 am)
[PATCH 4 of 5] dma api, Andrea Arcangeli, (Fri Dec 12, 11:16 am)
[PATCH 5 of 5] bdrv_aio_readv/writev, Andrea Arcangeli, (Fri Dec 12, 11:16 am)
Re: [Qemu-devel] [PATCH 4 of 5] dma api, Blue Swirl, (Fri Dec 12, 11:55 am)
Re: [PATCH 1 of 5] fix cpu_physical_memory len, Anthony Liguori, (Fri Dec 12, 12:06 pm)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Anthony Liguori, (Fri Dec 12, 12:15 pm)
Re: [PATCH 1 of 5] fix cpu_physical_memory len, Andrea Arcangeli, (Fri Dec 12, 12:26 pm)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Andrea Arcangeli, (Fri Dec 12, 12:37 pm)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Anthony Liguori, (Fri Dec 12, 12:39 pm)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Anthony Liguori, (Fri Dec 12, 1:09 pm)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Gerd Hoffmann, (Fri Dec 12, 1:25 pm)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Andrea Arcangeli, (Sat Dec 13, 7:39 am)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Anthony Liguori, (Sat Dec 13, 9:46 am)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Andrea Arcangeli, (Sat Dec 13, 9:53 am)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Anthony Liguori, (Sat Dec 13, 2:11 pm)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Anthony Liguori, (Sat Dec 13, 3:47 pm)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Avi Kivity, (Sat Dec 13, 11:07 pm)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Andrea Arcangeli, (Sun Dec 14, 9:47 am)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Avi Kivity, (Sun Dec 14, 10:01 am)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Andrea Arcangeli, (Sun Dec 14, 10:15 am)
Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO, Avi Kivity, (Sun Dec 14, 12:59 pm)