Re: Proposal for MMIO/PIO dispatch file descriptors (ioregionfd)

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

 



On Tue, Feb 25, 2020 at 12:30:16PM +0000, Felipe Franciosi wrote:
> > On Feb 25, 2020, at 12:19 PM, Felipe Franciosi <felipe@xxxxxxxxxxx> wrote:
> >> /* for ioregionfd_cmd::info */
> >> #define IOREGIONFD_CMD_MASK 0xf
> >> # define IOREGIONFD_CMD_READ 0
> >> # define IOREGIONFD_CMD_WRITE 1
> > 
> > Why do we need 4 bits for this? I appreciate you want to align the
> > next field, but there's SIZE_SHIFT for that; you could have CMD_MASK
> > set to 0x1 unless I'm missing something. The reserved space could be
> > used for something else in the future.

Yes, it's reserved for future commands.

> >> The byte offset being accessed within that region is addr.
> > 
> > It's not clear to me if addr is GPA absolute or an offset. Sounds like
> > the latter, in which case isn't it preferable to name this "offset"?

Yes, it's an offset into the region.  "Offset" is clearer, thanks!

Stefan

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux