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

Re: [Xen-devel] [PATCH] libxl: No emulated disk driver for xvdX disk



On 27/10/15 13:19, Ian Jackson wrote:
> George Dunlap writes ("Re: [Xen-devel] [PATCH] libxl: No emulated disk driver 
> for xvdX disk"):
>> On Tue, Oct 27, 2015 at 11:11 AM, Stefano Stabellini
>> <stefano.stabellini@xxxxxxxxxxxxx> wrote:
>>> The guest can access xvdX disks via the PV block protocol, or via
>>> UEFI firmare using EFI BootServices.
>>
>> But it introduces a sort of regression in some setups -- namely,
>> before you could use exactly the same disk and config file for either
>> a PV or HVM guest, simply adding builder=hvm (either to the file or
>> the command line) to switch between the two.
> 
> The purpose of the `vdev' in the xl disk specification is to say how
> the disk should be presented to the guest.
> 
> Did you look at docs/misc/vbd-interface.txt ?
> 
> If you want something that is accessible via the BIOS etc. in HVM
> guests, why not use vdev=hda rather than vdev=xvda ?

If I then take the came config file and remove 'builder="hvm"', will the
resulting thing boot as a PV guest?

I understand the idea of saying, "Well, 'vdev=xvda' means a PV disk; you
haven't asked for an emulated disk, so you shouldn't expect to get one."
 It's all very nice and neat and logical.  But:

1. It's been this way for years, and at least many developers' testing
systems have come to rely on this behavior.  I'd be surprised if this
didn't break a lot of users' configurations on upgrade

2. Being able to boot the exact same config file either PV or HVM is a
feature that makes sense to have

If both SeaBIOS and OVMF had PV drivers I don't think it would really be
an issue; but they don't.

The real issue I guess is that there is "automatic" behavior here that
we don't have a flag to control: PV disks get emulated counterparts
automatically, and emulated disks get PV counterparts automatically.
Would it make sense to have a per-device flag to specify this?
mirror=(true|false|auto), where "auto" is the default?

If we can detect whether we're booting with SeaBIOS or OVMF, we can even
have "auto" default to "false' for OVMF, and "true" for SeaBIOS (until
such time as we have PV drivers in SeaBIOS).

 -George



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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