On 11/19/25 1:38 AM, Michael S. Tsirkin wrote: > On Tue, Nov 18, 2025 at 08:38:51AM -0600, Daniel Jurgens wrote: >> - if (!(vp_dev->admin_vq.supported_caps & (1 << VIRTIO_DEV_PARTS_CAP))) >> + if (!(le64_to_cpu(data->supported_caps[0]) & (1 << >> VIRTIO_DEV_PARTS_CAP))) >> goto end; > > It's ok but a better way is > > data->supported_caps[0] & cpu_to_le64(1 << VIRTIO_DEV_PARTS_CAP) > > giving the compiler a chance to do the byte swap at compile time > on BE. >
Done > > >> virtio_pci_admin_cmd_dev_parts_objects_enable(virtio_dev); >> -- >> 2.50.1 >
