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

[PATCH 0/6] Align blkif protocol values to 512B sectors


  • To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>
  • Date: Tue, 28 Apr 2026 11:02:31 +0200
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=vates.tech header.i="@vates.tech" header.h="From:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:Feedback-ID"
  • Cc: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>, Owen Smith <owen.smith@xxxxxxxxxx>
  • Delivery-date: Tue, 28 Apr 2026 09:02:51 +0000
  • Feedback-id: default:8631fc262581453bbf619ec5b2062170:Sweego
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

Xen revision 221f2748e8da deprecated feature-large-sector-size and
clarified that all protocol-level sector sizes are based on 512-byte
units. This is the behavior observed on Linux blkback, and deviating
from this will lead to corrupting the virtual disk.

Tested on Linux blkback with a loop device using 4K blocksize. The guest
used a purely emulated disk "xvdz", as QEMU doesn't support more than
512B logical sector size in emulated devices. Note that Qdisk is still
broken wrt. 221f2748e8da.

Tu Dinh (6):
  Update to latest blkif.h
  Stop reporting feature-large-sector-size
  Align blkif protocol values to 512B sectors
  Centralize VBD extent checking
  xencrsh: Stop reporting feature-large-sector-size
  xencrsh: Align blkif protocol values to 512B sectors

 include/xen/io/blkif.h | 103 ++++++++++++++++++++++++++++-------------
 src/xencrsh/frontend.c |  30 ++++++------
 src/xencrsh/frontend.h |  10 +++-
 src/xencrsh/pdo.c      | 103 +++++++++++++++++++++++++++--------------
 src/xenvbd/frontend.c  |  90 +++++++++++++++++++++--------------
 src/xenvbd/frontend.h  |  36 +++++++++++++-
 src/xenvbd/ring.c      |  60 ++++++++++++------------
 src/xenvbd/target.c    |  37 ++++++++-------
 8 files changed, 302 insertions(+), 167 deletions(-)

--
2.54.0.windows.1


--
Ngoc Tu Dinh | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.