[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH V8 08/15] virtio-blk : Add the virtio-blk de
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [RFC PATCH V8 08/15] virtio-blk : Add the virtio-blk device. |
Date: |
Wed, 19 Dec 2012 23:22:32 +0000 |
On 19 December 2012 20:00, Blue Swirl <address@hidden> wrote:
> On Wed, Dec 19, 2012 at 9:53 AM, <address@hidden> wrote:
>> +#ifdef __linux__
>> +#define DEFINE_VIRTIO_BLK_PROPERTIES(_state, _field) \
>> + DEFINE_BLOCK_PROPERTIES(_state, _field.conf), \
>> + DEFINE_BLOCK_CHS_PROPERTIES(_state, _field.conf), \
>> + DEFINE_PROP_STRING("serial", _state, _field.serial), \
>> + DEFINE_PROP_BIT("scsi", _state, _field.scsi, 0, true)
>> +#else
>> +#define DEFINE_VIRTIO_BLK_PROPERTIES(_state, _field) \
>> + DEFINE_BLOCK_PROPERTIES(_state, _field.conf), \
>> + DEFINE_BLOCK_CHS_PROPERTIES(_state, _field.conf), \
>> + DEFINE_PROP_STRING("serial", _state, _field.serial)
>
> Does the different property set mean that it would not be possible to
> migrate VMs which use virtio from non-Linux host to Linux and vice
> versa?
Probably, but note that this is just reflecting an existing ifdef in
the non-refactored implementation.
(I looked at that existing ifdef and thought "smells dubious", but
presumably there is a reason.)
-- PMM
- [Qemu-devel] [RFC PATCH V8 00/15] Virtio refactoring., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 01/15] qdev : add a maximum device allowed field for the bus., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 03/15] virtio-pci-bus : Introduce virtio-pci-bus., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 02/15] virtio-bus : Introduce virtio-bus, fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 04/15] virtio-pci : Refactor virtio-pci device., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 05/15] virtio-device : Refactor virtio-device., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 08/15] virtio-blk : Add the virtio-blk device., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 06/15] virtio-s390-bus : Add virtio-s390-bus., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 09/15] virtio-blk-pci : Switch to new API., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 07/15] virtio-s390-device : create a virtio-s390-bus during init., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 10/15] virtio-blk-s390 : Switch to the new API., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 12/15] virtio-blk : cleanup : remove qdev field., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 14/15] virtio : Remove VirtIOBindings., fred . konrad, 2012/12/19
- [Qemu-devel] [RFC PATCH V8 15/15] virtio : cleanup : init and exit function., fred . konrad, 2012/12/19