Re: [PATCH v5 12/19] Introduce virtio-testdev

Paolo Bonzini
2014-06-12T11:56:54Z

Il 12/06/2014 13:30, Andrew Jones ha scritto:
>> >
>> > Hi Drew,
>> >
>> > quite a few months ago I had promised to help with an alternative
>> > implementation that does not require a new virtio device (which would
>> > in turn need registration of the device ID and so on.
> Does it? I assumed we'd be fine just using 0xffff (which I understood
> from the spec to be reserved for development purposes).

That actually means "use 65535 until you've requested a unique id".

I'd rather use 0xf2d6 (a random high number) than 65535, even though
that's out-of-spec.

Paolo

> I guess a
> potential problem would be if this device is also used at the same
> time as an experimental device that is also making that assumption,
> but that'd be easily fixed by the developer who's doing the
> experimenting.
>