|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2] libxl: Add AHCI support for upstream qemu
Il 25/06/2015 12:21, Ian Campbell ha scritto: On Tue, 2015-06-23 at 11:15 +0200, Fabio Fantoni wrote:Usage: ahci=0|1 (default=0)I think a global rather than per disk option is OK (I can't think why a user would want to mix and match) but maybe we should consider using an enum (with values ide and ahci, defaulting to ide in libxl) so that we can add support for whatever fancy new disk controller everyone is using in 5 years time? ahci was added 4 years ago in qemu and I don't know of newer similar tecnology, in the case of enum probably shold be more generic for include more future possibility or I'm wrong? in that case what can be the name? @stabellini and other developer: any advice about this? If enabled adds ich9 disk controller in ahci mode and uses it with upstream qemu to emulate disks instead of ide. It doesn't support cdroms which still using ide (cdroms will use "-device ide-cd" as new qemu parameter)I don't follow this reference to "will use" and a new qemu parameter, there seems to be nothing corresponding in this patch AFAICT. Is a "FAQ" for explain why cdrom is still ide and ahci use "new" qemu parameters (added in qemu 5 or 6 years ago but still not fully used in xen... :( ) Ahci requires new qemu parameter but for now other emulated disks cases remains with old ones (I did it in other patch, not needed by this one)You can drop the reference to the other patch I think. I thinked also in this case that can be useful as "FAQ". I did it as libxl parameter disabled by default to avoid possible problems: - with save/restore/migration (restoring with ahci a domU that was with ide instead) - windows < 8 without pv drivers (a registry key change is needed for AHCI<->IDE change FWIK to avoid possible blue screen)What is "FWIK"? FWIK= for what I knowon physical computer I see that change ide<->ahci in bios without change in windows do a blue screen on boot, on xen domUs with pv driver don't do but without probably will do the same. In any case is not a xen problem. - windows XP or older that many not support ahci by default. Setting AHCI with libxl parameter and default to disabled seems the best solution. AHCI increase hvm domUs boot performance. On linux hvm domU I saw up to only 20% of the previous total boot time, whereas boot time decrease a lot on W7 domUs for most of boots I have done. Small difference in boot time compared to ide mode on W8 and newer (probably other xen improvements or fixes are needed not ahci related) Signed-off-by: Fabio Fantoni <fabio.fantoni@xxxxxxx> --- Changes in v2: - libxl_dm.c: small code style fix - added vbd-interface.txt changes --- docs/man/xl.cfg.pod.5 | 9 +++++++++ docs/misc/vbd-interface.txt | 5 +++-- tools/libxl/libxl.h | 10 ++++++++++ tools/libxl/libxl_create.c | 1 + tools/libxl/libxl_dm.c | 10 +++++++++- tools/libxl/libxl_types.idl | 1 + tools/libxl/xl_cmdimpl.c | 1 + 7 files changed, 34 insertions(+), 3 deletions(-) diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5 index a3e0e2e..7e16123 100644 --- a/docs/man/xl.cfg.pod.5 +++ b/docs/man/xl.cfg.pod.5 @@ -904,6 +904,15 @@ default is B<cd>.=back +=item B<ahci=[0|1]>"=item B<ahci=BOOLEAN>" please. I'll do in v3 +If enabled adds ich9 disk controller in ahci mode and uses it with +upstream qemu to emulate disks instead of ide. It decrease boot time but"decreases" I'll do in v3 +may be not supported by default in windows xp and older windows. +The default is disabled (0)."may not be supported". I think AHCI and IDE should be capitalised in the text (not the option name). As should "Windows XP" and "Windows" I'll do in v3 + +=back + =head3 PagingThe following options control the mechanisms used to virtualise guestdiff --git a/docs/misc/vbd-interface.txt b/docs/misc/vbd-interface.txt index f873db0..afb6846 100644 --- a/docs/misc/vbd-interface.txt +++ b/docs/misc/vbd-interface.txt @@ -3,18 +3,19 @@ Xen guest interfaceA Xen guest can be provided with block devices. These are alwaysprovided as Xen VBDs; for HVM guests they may also be provided as -emulated IDE or SCSI disks. +emulated IDE, AHCI or SCSI disks.The abstract interface involves specifying, for each block device: * Nominal disk type: Xen virtual disk (aka xvd*, the default); SCSI- (sd*); IDE (hd*). + (sd*); IDE or AHCI (hd*).For HVM guests, each whole-disk hd* and and sd* device is made Is there no difference about disk hotplugged but ahci is rilevant only at boot time? If yes I'll add the if.
I'll do in v3 + continue;From a flow of control PoV this continue is a little jarring. How about adding a new const char *device = NULL to complement the existing drive and doing the add in the common bit with an if (device)? the 2 continue cases in emulated disks will be removed on my other patch about new qemu parameter for disks and cdrom, I must change the thing also here? I also not understand exatcly what you mean in this change. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |