Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp676076imu; Fri, 7 Dec 2018 07:15:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wr3NhU6tp7lBZ4wpXoho0f1iMzOc8zhekm+7+4Tjk66UgxWWbqtgwJiEmQZz5yjSBSpMz7 X-Received: by 2002:a62:c613:: with SMTP id m19mr2629261pfg.207.1544195738624; Fri, 07 Dec 2018 07:15:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544195738; cv=none; d=google.com; s=arc-20160816; b=LwT5s5+eMJa6HbGWL/Vu/AxZWGii+TUSpr26xIOZBCHq1P0FQaW5teUR4/gGR5g/kS /laYDVICfFXMkIkozmczzlk5kZwAM/ZjLYogUzoxZXMZVyLR9KdD/+x2i5VPs27hssMv C1DWyb51rFtkw9ikixr/dst7zVBYF/xcN8q1ZM2aoCBnWERTsSWiPO+TpDe5mntW7EJ4 GUcd6Mv0N/rI94z/OAzkYRciwYed5nkxXV6WWPDVDUYG/e5McCAY9KVkrL3JUhkaFe02 0pyRntajWjfbTclM8o3iUuwY6E7mjeB02MMJNAMFG90SxC7MVZN74Hc4iSm3LVRA4tA1 s3FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=jvsrK9fuBp4EhpNaGA578d9Coc6TFRRDbrRIiXY/DVA=; b=bkxi7D3V/X6Tu9sHc+hmuzZkcWCMO3u/9X7h8Y++U4TE5x/H5Yg5hG1FF0KtdW+Yfq IWaiOzeE3AoM4b40HmczwiC22s6Fg/JbiO1eMw02VdO1HrUxA7C2ax074mHwk7ltOvfh aK6lAnmMAjAAeYDmbiGNzCm31Mvh7YQkaryFmSUwyyD5qg4wAEBiWBuTQ9C3PKtW6WKe zPCttj41YYenGFP+tcursPBiA1eOcq1u2IExwau2oSTF86G5raqw+6mOfCqOgxZQjRqd w19YelLOrbxGql63BNcMUbXOHRIPMWLkH960hmXzrpsoXJPrxjmveNvja2qZLD/e4/NM 3eeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="Qd867Bi/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4si3543380pfm.85.2018.12.07.07.15.13; Fri, 07 Dec 2018 07:15:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="Qd867Bi/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726131AbeLGPOZ (ORCPT + 99 others); Fri, 7 Dec 2018 10:14:25 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45516 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726034AbeLGPOY (ORCPT ); Fri, 7 Dec 2018 10:14:24 -0500 Received: by mail-wr1-f66.google.com with SMTP id b14so4108538wru.12; Fri, 07 Dec 2018 07:14:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:openpgp:autocrypt:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jvsrK9fuBp4EhpNaGA578d9Coc6TFRRDbrRIiXY/DVA=; b=Qd867Bi/1nPhGnr1MNjjsFR1tHlv/BY4nOR0IssMGZRf8FdWeveL1sHFGh5PSSZ/Vs 0T77GvlayNf77ZBnCcKcj+K8HqxoFRKmcPFq2ZZ3h0kCQsIklDymA7OIT1f4wLGxZbFn HxgaEAVHFRlaz6gCks/SHYxEWBoRXLuEJb9gM7A95o4r5vnzDkHQzzLIN3mQd7ph4aIR efurRR803sPkhRkK4qQRAFoyKY3WugA3P/RRyNfGHSohQC6VlvLRjRPC/1BCSe9qY7gy qCvBNL+XqRMwITbGDN8RDns5JBOgQOJXRl8HejzfpXAvvFj3h8W0vzP45a9PS9bAlVYq caag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:openpgp :autocrypt:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=jvsrK9fuBp4EhpNaGA578d9Coc6TFRRDbrRIiXY/DVA=; b=NDraiwo5FWZG30td9hL/m8f8wI1N6IN1igbkQi9XzUrQj4K3L5vQB5zG2iPbyRqYWn Xj9bD5HkhRUIdXGQbHsdLeYqAgCHTaTxnPted0Q8pbWoVtJeXc7bAjQoEfvcQYWmkORc LvRIZ0WISHK5TdWsLNj2osZOvR+6NbwotOZPhQe/K4oAQzqNckqR/lEwcgOL56aJAwqB QCc5J3nwhIwazo9vSyOMG7abhNj5dYOlPXf7/q2kVhPuUJQeXbca+w0UcPWr8w/zB5En QB3M6M7hcyw2fM+L0Ow2hPzBg8YodhrLQc/l9ZeAZv6UG5EiXKhFRDg5uDTX5yuukFqg tE3Q== X-Gm-Message-State: AA+aEWZBq/Vbpg11h//diW5VODGSZaZPkT9pVnvv6XJFi+gZxbtxBIcg z3lrxvDFVuny8KzzM4Ii2b8= X-Received: by 2002:a05:6000:110f:: with SMTP id z15mr2055424wrw.136.1544195661953; Fri, 07 Dec 2018 07:14:21 -0800 (PST) Received: from [192.168.43.81] ([31.157.62.197]) by smtp.googlemail.com with ESMTPSA id q14sm3628751wrw.39.2018.12.07.07.14.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Dec 2018 07:14:20 -0800 (PST) Subject: Re: [PATCH v8 1/7] xen/pvh: Split CONFIG_XEN_PVH into CONFIG_PVH and CONFIG_XEN_PVH To: Juergen Gross , Maran Wilson , x86@kernel.org, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, kvm@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, boris.ostrovsky@oracle.com, jpoimboe@redhat.com, kirill.shutemov@linux.intel.com, bp@suse.de, thomas.lendacky@amd.com, luto@kernel.org, dave.hansen@linux.intel.com, roger.pau@citrix.com, rkrcmar@redhat.com, rdunlap@infradead.org References: <1544076152-21637-1-git-send-email-maran.wilson@oracle.com> <1544076257-21792-1-git-send-email-maran.wilson@oracle.com> <2c289956-0e6a-700c-605d-83685fbb08f9@suse.com> <0a2f692a-f7df-8ad1-9d34-96f5e36926db@redhat.com> <3f95d053-87aa-ad45-03e6-1e1977283eb4@suse.com> <5d1d0071-1db4-ea03-027f-2a12812b78d0@suse.com> From: Paolo Bonzini Openpgp: preference=signencrypt Autocrypt: addr=pbonzini@redhat.com; keydata= xsEhBFRCcBIBDqDGsz4K0zZun3jh+U6Z9wNGLKQ0kSFyjN38gMqU1SfP+TUNQepFHb/Gc0E2 CxXPkIBTvYY+ZPkoTh5xF9oS1jqI8iRLzouzF8yXs3QjQIZ2SfuCxSVwlV65jotcjD2FTN04 hVopm9llFijNZpVIOGUTqzM4U55sdsCcZUluWM6x4HSOdw5F5Utxfp1wOjD/v92Lrax0hjiX DResHSt48q+8FrZzY+AUbkUS+Jm34qjswdrgsC5uxeVcLkBgWLmov2kMaMROT0YmFY6A3m1S P/kXmHDXxhe23gKb3dgwxUTpENDBGcfEzrzilWueOeUWiOcWuFOed/C3SyijBx3Av/lbCsH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; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <5d1d0071-1db4-ea03-027f-2a12812b78d0@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/12/18 14:58, Juergen Gross wrote: > On 07/12/2018 14:52, Paolo Bonzini wrote: >> On 07/12/18 14:50, Juergen Gross wrote: >>> The PVH boot entry is in the same bzImage binary as the normal one. >>> Its just another entry, similar to the Xen PV boot entry. So the binary >>> arch/x86/boot/bzimage can be booted either on bare metal via grub2 or >>> other boot-loaders, as Xen PV-guest, as Xen PVH-guest, or as KVM >>> PVH-guest. So one build and one binary. The non-standard boot entries >>> (PV- or PVH-node) are found via ELF-notes by the boot loader (qemu in >>> case of KVM). >> >> But the bzImage is not an ELF binary, and it is compressed, isn't it? >> /me is confused. :) > > grub2 (and qemu, too) can decompress it. And the decompressed result > "vmlinux" is an ELF-binary. Aha - for KVM, the main advantage of PVH would be to skip the cost of decompression, and that is what confused me (also we probably prefer not having any decompression code running in QEMU, since that increases the attack surface; there's no real disadvantage to using the existing linuxboot code if we're given a bzImage). So, at least for now, KVM would go with the two-binaries/one-config approach. Sorry for having you lecture me, it's much clearer now. Thanks, Paolo