opnsense-src/sys/dev/xen
Roger Pau Monné e7fe856437 xen/blk{front,back}: fix usage of sector sizes different than 512b
The units of the size reported in the 'sectors' xenbus node is always 512b,
regardless of the value of the 'sector-size' node.  The sector offsets in
the ring requests are also always based on 512b sectors, regardless of the
'sector-size' reported in xenbus.

Fix both blkfront and blkback to assume 512b sectors in the required fields.

The blkif.h public header has been recently updated in upstream Xen repository
to fix the regressions in the specification introduced by later modifications,
and clarify the base units of xenstore and shared ring fields.

PR: 280884
Reported by: Christian Kujau
MFC after: 1 week
Sponsored by: Cloud Software Group
Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D46756
2024-10-08 09:29:13 +02:00
..
balloon xen/dev: remove __unused from driver argument of identify functions 2023-11-28 13:32:57 +01:00
blkback xen/blk{front,back}: fix usage of sector sizes different than 512b 2024-10-08 09:29:13 +02:00
blkfront xen/blk{front,back}: fix usage of sector sizes different than 512b 2024-10-08 09:29:13 +02:00
bus xen: introduce a per-arch scratch mapping ranges 2024-07-30 09:39:38 +02:00
console x86/xen: introduce non-hypercall based emergency print 2024-02-22 11:08:03 +01:00
control xen: remove PV suspend/resume support copyright 2024-10-07 18:59:45 +02:00
cpu sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
debug xen/debug: remove usage of sbuf_{clear,finish}() on drained sbuf 2024-05-09 12:50:08 +02:00
efi sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
evtchn sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gntdev dev_pager: define free_page for mgt devices 2024-08-21 15:48:59 -05:00
grant_table xen/dev: remove __unused from driver argument of identify functions 2023-11-28 13:32:57 +01:00
netback netpfil: Use accessor functions and named constants for all tcphdr flags 2023-12-25 13:18:01 +01:00
netfront xen/netfront: Decouple XENNET tags from mbuf lifetimes 2024-08-02 18:05:37 +00:00
pcifront newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
privcmd dev_pager: define free_page for mgt devices 2024-08-21 15:48:59 -05:00
timer xen/intr: correct misuses of Xen handle pointer type 2023-11-28 12:51:19 +01:00
xenpci xen/dev: switch to DEVMETHOD_END 2023-11-28 13:31:47 +01:00
xenstore xen/dev: remove __unused from driver argument of identify functions 2023-11-28 13:32:57 +01:00