Re: [PATCH v4 2/2] virt: acrn: Introduce interfaces for virtual device creating/destroying

From: Li Fei1
Date: Tue Sep 14 2021 - 21:35:35 EST


On Tue, Sep 14, 2021 at 09:00:48AM +0200, Greg KH wrote:
> On Tue, Sep 14, 2021 at 02:26:27PM +0800, Fei Li wrote:
> > +struct acrn_vdev {
> > + /*
> > + * the identifier of the device, the low 32 bits represent the vendor
> > + * id and device id of PCI device and the high 32 bits represent the
> > + * device number of the legacy device
> > + */
> > + union {
> > + __u64 value;
> > + struct {
> > + __u16 vendor;
> > + __u16 device;
> > + __u32 legacy_id;
>
> What is the endian of these fields?
"Big-endian" or "Little-endian" ? If yes, they're Little-endian.

>
> Please always specify them.
Sure.
>
> thanks,
>
> greg k-h