Port-xen archive

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

Re: xbd and large sectors



On Fri, 21 Jul 2023, Manuel Bouyer wrote:
> On Fri, Jul 21, 2023 at 11:48:56AM +0200, Manuel Bouyer wrote:
> > [...]
> > 
> > Reading the linux sources, the xbd driver pass "sectors" directly to
> > set_capacity(), which expects the disk size in 512-byte sectors, so
> > the backend is doing what linux expects, and NetBSD is miscomputing
> > the disk size when doing sectors * sector-size.
> > 
> > A NetBSD dom0 will never report 4k sectors to the guest so we can just fix
> > the frontend, and there's no backward compat issue.
> > 
> > I will commit a fix to HEAD later today.
> 
> Done in xbd_xenbus.c 1.132
> Christian can you please test and report if it properly fixes the issue ?

That's...quite awesome, thanks for taking a stab at this so quickly!

Unfortunately, I don't have much experience with running -current. I have 
another Netbsd-9.3 VM running on another system, think I can manage and 
*build* -current there, but I still have to figure out how to create an 
INSTALL kernel from that (to test PV or PVH), or a bootable ISO to test 
the HVM case.

This might take a while...

Thanks again,
Christian.
-- 
BOFH excuse #179:

multicasts on broken packets


Home | Main Index | Thread Index | Old Index