From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yessine Daoud Subject: Re: Slow HVM boot time, was "HVM boot time optimization" Date: Thu, 15 Feb 2018 17:02:35 +0100 Message-ID: References: <20180208164810.7h7equv4gfbjyzet@citrix.com> <20180208165600.GC1740@perard.uk.xensource.com> <20180208173233.6dejumgyqsz3ecjv@citrix.com> <20180212144217.5iwogwdydfl7ehof@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1423486729142036141==" Return-path: Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emLzZ-0001fb-Sd for xen-devel@lists.xenproject.org; Thu, 15 Feb 2018 16:02:38 +0000 Received: by mail-io0-x233.google.com with SMTP id 72so1068134iom.10 for ; Thu, 15 Feb 2018 08:02:35 -0800 (PST) In-Reply-To: <20180212144217.5iwogwdydfl7ehof@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" To: Wei Liu Cc: Anthony PERARD , xen-devel@lists.xenproject.org, Stefano Stabellini , ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org --===============1423486729142036141== Content-Type: multipart/alternative; boundary="001a113ffd102cc6b90565425b0e" --001a113ffd102cc6b90565425b0e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I tried to debug the issue and this what I found: the HVM boot takes some time at the following section (qemu/pc-bios/optionrom/linuxboot.S) /* Load kernel and initrd */ read_fw_blob_addr32_edi(FW_CFG_INITRD) (ramdisk about 3M takes ~~7.s) read_fw_blob_addr32(FW_CFG_KERNEL) (vmlinuz about 7M takes ~~15.s) read_fw_blob_addr32(FW_CFG_CMDLINE) #define read_fw_blob_addr32(var) \ read_fw var ## _ADDR; \ mov %eax, %edi; \ read_fw_blob_pre(var); \ /* old as(1) doesn't like this insn so emit the bytes instead: \ addr32 rep insb (%dx), %es:(%edi); \ */ \ .dc.b 0x67,0xf3,0x6c #define read_fw_blob_addr32_edi(var) \ read_fw_blob_pre(var); \ /* old as(1) doesn't like this insn so emit the bytes instead: \ addr32 rep insb (%dx), %es:(%edi); \ */ \ .dc.b 0x67,0xf3,0x6c Any idea how to speed the I/O read ? Thanks. =E1=90=A7 2018-02-12 15:42 GMT+01:00 Wei Liu : > On Mon, Feb 12, 2018 at 09:27:25AM +0100, Yessine Daoud wrote: > > Hello, > > > > Thank you for your quick response. > > Any hints how can I "fix" this "issue"? *Any workaround? > > > > Honestly I have no idea why it is slow unless there is more logging > available. > > Wei. > --001a113ffd102cc6b90565425b0e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I tried to debug the issu= e and this what I found:
the HVM boot takes some time at the following= section (qemu/pc-bios/optionrom/linuxboot.S)
/* Load kernel and initrd */
read_fw_blob_addr32_edi(FW_CFG= _INITRD) (ramdisk about 3M takes ~~7.s)
read_fw_blob_addr32(FW_CFG_KERNEL) (vmlinuz about = 7M takes ~~15.s)
rea= d_fw_blob_addr32(FW_CFG_CMDLINE)

#define rea= d_fw_blob_addr32(var) \
=
read_fw var ## _ADDR; \
mov %eax, %edi; \
read_fw_blob_pre(var); \
/* old as(1) d= oesn't like this insn so emit the bytes instead: \
addr32 rep insb (%dx), %es:(%edi);= \
*/ \
.dc.b 0x67,0xf3,0x6c

#define read_fw_blob_addr32_edi(v= ar) \
read_fw_blob_pre(var); \
/* old as(1) doesn't like this insn so emit the bytes instea= d: \
addr32 rep insb= (%dx), %es:(%edi); \
*/ \
.dc.b 0x67,0xf3,0x6c

Any idea h= ow to speed the=C2=A0=C2=A0I/O read ?=
Thanks.


=3D""=E1=90=A7

2018-02-12 15:42 GMT+01:00 Wei Liu <wei.liu2@ci= trix.com>:
On Mon, Feb 12, 2018 at 09:27:25AM +0100, Yessine Daoud wrote:
>=C2=A0 Hello,
>
> Thank you for your quick response.
> Any hints how can I "fix" this "issue"? *Any worka= round?
>

Honestly I have no idea why it is slow unless there is more logging<= br> available.

Wei.

--001a113ffd102cc6b90565425b0e-- --===============1423486729142036141== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============1423486729142036141==--