From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mx.groups.io with SMTP id smtpd.web12.22658.1628777276821862540 for ; Thu, 12 Aug 2021 07:07:56 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JXWOVkyE; spf=pass (domain: gmail.com, ip: 209.85.216.52, mailfrom: 475.chris.willing@gmail.com) Received: by mail-pj1-f52.google.com with SMTP id bo18so9843134pjb.0 for ; Thu, 12 Aug 2021 07:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0QdzJ3Rv0mFc21LtQBVAaZIfJA1P+Wr10SBbrEiDsjI=; b=JXWOVkyEuol/LiZ6btWq6+dr9edwvnFV/nrev47STEzG0U5q5Up9BLjNHp22jY9k4q nbDmN3UpgJdhRSSu33O+1NDwGDnegsZzy6ccJs9d/8e0kCwjKFsUdQ5zdPK5ouuv0P7o FUZR6TItVl0ILiDFXGYLAVhVDuD1HwI0uwhuAphshdszVOZfglqq4218cpdIqCHOyqnR yC7FMX/v+nSbEs3vneTL4T/yHbdF5WsJIbyb0vpG9e2ciQoSU8ZhwIBFq9HVj133yUg7 xUgnZTM8cbKVvq2cw4PJkvNjAR0rahdHckeFFyB5usyjnI32v/dQOtqj9iIPXJtKuFPJ ZZBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:subject:to:cc:references :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=0QdzJ3Rv0mFc21LtQBVAaZIfJA1P+Wr10SBbrEiDsjI=; b=Y5sNHS2Lo0qMNprO8KdFuWvXTuLL6nYl/qbtvXHEhABAdBXO9eQxl78aNBRvYKnUUC OTxsLkREb2PCcwLqo4ie/CSTbAd8TrpDPvGyHy4RN3+meCK+oPLw70gP5aI0ceEIlINK 6R8TGXr/3RruurvHO56DAwK1NpSkbMKaJUwwVRB5Z7nITN6mYXbA5D9JGgn9b8rJU89y cRz/UXk5ODkkeKHLCnMo4iGmZflnjidF0y1iW227TnocHTtQnL3d+MtSbsiDWwDiYhF1 xAFybUezKVHSBQhNHP1vZ2DmcaGf+23MoIjp9eXW9hPTmOVvGDLgEwocV6x+f05CGhFX GQ5A== X-Gm-Message-State: AOAM533+nfsB3woYZMF987C8HT8Ldylu0cwTaQir120ORqc3hURT3qOH 9n9QUtVXJ6hVUJVSucmNgJY= X-Google-Smtp-Source: ABdhPJzTJWxi6YtgW1Zw1lDML6WT8WQDdSCgrVkwJagE8jbDVuOUb4XylmNORQj1htnsvcYiv/OLCA== X-Received: by 2002:a17:90a:c2:: with SMTP id v2mr16130847pjd.96.1628777276285; Thu, 12 Aug 2021 07:07:56 -0700 (PDT) Return-Path: <475.chris.willing@gmail.com> Received: from d8.hgw.net.au (pa49-197-140-170.pa.qld.optusnet.com.au. [49.197.140.170]) by smtp.gmail.com with ESMTPSA id f6sm3787074pfe.10.2021.08.12.07.07.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Aug 2021 07:07:55 -0700 (PDT) From: "Christoph Willing" X-Google-Original-From: Christoph Willing Reply-To: chris.willing@linux.com Subject: Re: [edk2-devel] [PATCH 1/1] OvmfPkg PlatformBootManagerLib: Move TryRunningQemuKernel() To: devel@edk2.groups.io, kraxel@redhat.com Cc: Ard Biesheuvel , James Bottomley , Ard Biesheuvel , Jiewen Yao References: <1b544f28-b5b9-c08c-bab7-8c1f41778dce@linux.com> <5c85a3f963d1ab7d20e177db9a07a73e82a0eed0.camel@HansenPartnership.com> <7dc3b9d2-5ebb-c261-46b4-658dcbbfd0f4@linux.com> <8286f815812caccbffaa3696f5e884a62ec0a046.camel@HansenPartnership.com> <20210811061223.prihfxnufka6gzxp@sirius.home.kraxel.org> <5eb58219-758c-e12b-8bd3-5d646dba72bc@linux.com> <9972a9a6-b34e-7735-d4a7-5ff7c1be8fe0@linux.com> <20210812133628.2tk46qvou725435c@sirius.home.kraxel.org> Message-ID: <931a068e-0266-5239-355a-27a3b515c9ab@linux.com> Date: Fri, 13 Aug 2021 00:07:50 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210812133628.2tk46qvou725435c@sirius.home.kraxel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 12/8/21 11:36 pm, Gerd Hoffmann wrote: > Hi, > >> While that all worked fine, probably with better performance (as Gerd >> mentioned) it was still unsatisfying that I couldn't make the plain ide >> work. It turns out that the ide interface can work without changes to >> the initrd but invocation requires separate -drive and -device options, >> somewhat like James' scsi version, namely: >> >> -device ahci,id=ahci \ >> -device ide-hd,drive=ide0,bus=ahci.0 \ >> -drive >> if=none,id=ide0,file=disk.img,format=raw,cache=none,index=0,media=disk \ > > That is again something different, namely sata ... > >> instead of my original shortcut version: >> >> -drive file=disk.img,format=raw,cache=none,index=0,media=disk \ > > ... while this is the older pata (with "-machine pc"). > > To add even more confusion: When using the more modern q35 chipset > ("-machine q35") qemu will also use the more modern sata when you > use the shortcut version to attach your disk. > > So, in general it is a good idea to explicitly add the storage > controller and devices you want as suggested by James. Results > in less surprises ;) > Thanks Gerd, That is the missing piece of the puzzle. I added "-machine q35" and reverted to the shortcut -drive option and boot was successful with UEFI. Although I will use the longer form in future, it was still annoying that the shortcut version failed. The pata/sata explanation is quite satisfying and I can finally let this issue go :) chris >> I'll probably stick with the better performing scsi version from now on >> although it's still interesting that the shortcut version works without >> UEFI but fails with UEFI. > > I've seen guest driver failures due to missing firmware initialization > before. Specifically firmware not setting the busmaster bit in pci > config space leading to guest driver's dma transfers failing (which of > course is a guest driver bug). > > I can imagine ovmf taking shortcuts for direct kernel boot could have > that kind of effect too, and of course it could vary depending on the > kind of storage controller used. > > take care, > Gerd > > > > >