qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/7] virtio: allow byte swapping for vring and c


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 1/7] virtio: allow byte swapping for vring and config access
Date: Fri, 9 Aug 2013 08:42:16 +0100

On 9 August 2013 08:35, Rusty Russell <address@hidden> wrote:
> That's a lot of replumbing and indirect function calls for a fairly
> obscure case.  We certainly don't have a nice CPUState lying around in
> virtio at the moment, for example.

Actually if you're in an IO routine you do: it will be in the
global variable 'current_cpu'. Most IO functions don't need this,
but it's what we use for things like "this device behaviour varies
depending on which CPU accesses it".

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]