[Top][All Lists]

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

Re: [Qemu-devel] [PATCH 00/10] virtio: import headers from linux

From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 00/10] virtio: import headers from linux
Date: Thu, 23 May 2013 17:58:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6

Il 23/05/2013 17:32, Michael S. Tsirkin ha scritto:
> On Thu, May 23, 2013 at 05:56:43PM +0300, Michael S. Tsirkin wrote:
>> On Thu, May 23, 2013 at 03:41:07PM +0100, Peter Maydell wrote:
>>> On 23 May 2013 15:34, Michael S. Tsirkin <address@hidden> wrote:
>>>> I'm working on adding new virtio layout to qemu.
>>>> The job is complicated by the fact that
>>>> qemu has its own copy of the virtio headers,
>>>> sometimes with slightly different names
>>>> and structure.
>>>> Import headers from linux instead.
>>> Do the kernel guys guarantee that their headers will
>>> compile on all the platforms QEMU supports? [eg windows]
>>> (this isn't an issue for the current uses of linux-headers
>>> because we only use it for KVM support, and if KVM is
>>> enabled you're definitely on a Linux host.)
>>> thanks
>>> -- PMM
>> No but at the moment there's nothing there besides harmless
>> defines.
>> But it's not like we update these things automatically.
>> If/when things break, we can change update-headers to strip
>> problematic stuff out of there.
> Or so I thought but in practice there's a dependency
> on linux/types.h
> However, that's pretty easy to address.
> I can think of two ways:
>     - strip linux/types.h in update_headers
>     - add a stub linux/types.h for non linux platforms

The latter, using stdint.h types, would be fine.


reply via email to

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