From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 955C29410D8 for ; Fri, 2 Aug 2024 05:23:08 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=1GwQ+gN/XW3sgaVLmj6DNiwe+S0O1Tgh93ljWJsEP6s=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:User-Agent:Subject:To:References:From:In-Reply-To:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Language; s=20240206; t=1722576188; v=1; b=is5n7Ad/IDdr7qYVb5gSnw4598AW5RijupRqXE+HGYtDx+FZqnw77LZ7exzDzAP1C5P3EucA bXQiu2l69ykbXbq9EOXbfByvj/va6/7kRzmwhKPFOUgVMykH8eVIsg/P/IHWuTmcDTx0Hazjrmf 9a6HXjDLgYHTFEmR66ZUf4l2wLkRkEYQkwK65CKqbTyvrf/G8t4R1aYtwEUwdcTR4BL0ZvHgtUP zdZvcxRYSeP/d/hDuJe1rwuZFs3++cs6G5nxgfjfXd9IqrJeyFgrg7AY0IeBIv/YBeJllVht39i Mtw3MER5zgPskTb1jtf9UmGXNunLsLucFJmRcNNb7jsjw== X-Received: by 127.0.0.2 with SMTP id DuHpYY7687511xf0ghpKIM43; Thu, 01 Aug 2024 22:23:07 -0700 X-Received: from NAM02-SN1-obe.outbound.protection.outlook.com (NAM02-SN1-obe.outbound.protection.outlook.com [40.107.96.49]) by mx.groups.io with SMTP id smtpd.web11.86356.1722576186385688253 for ; Thu, 01 Aug 2024 22:23:06 -0700 X-Received: from IA1PR12MB6460.namprd12.prod.outlook.com (2603:10b6:208:3a8::13) by PH7PR12MB6786.namprd12.prod.outlook.com (2603:10b6:510:1ac::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.22; Fri, 2 Aug 2024 05:23:02 +0000 X-Received: from IA1PR12MB6460.namprd12.prod.outlook.com ([fe80::c819:8fc0:6563:aadf]) by IA1PR12MB6460.namprd12.prod.outlook.com ([fe80::c819:8fc0:6563:aadf%4]) with mapi id 15.20.7828.023; Fri, 2 Aug 2024 05:23:02 +0000 Message-ID: <517b7057-70b8-448f-a944-e07768c272c2@amd.com> Date: Fri, 2 Aug 2024 10:52:53 +0530 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] Patch OvmfPkg: Use heap memory for virtio-scsi request causing regression To: Sami Mujawar , "devel@edk2.groups.io" , "srikanth.aithal@amd.com" , Ard Biesheuvel , Jiewen Yao , Gerd Hoffmann References: <4e3b70bf-2655-46da-bcc8-ba1c57ae4382@amd.com> <697893FB-E963-4C9E-A8E0-1184980C6C88@arm.com> From: "Aithal, Srikanth via groups.io" In-Reply-To: <697893FB-E963-4C9E-A8E0-1184980C6C88@arm.com> X-ClientProxiedBy: MA0P287CA0005.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:d9::17) To IA1PR12MB6460.namprd12.prod.outlook.com (2603:10b6:208:3a8::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR12MB6460:EE_|PH7PR12MB6786:EE_ X-MS-Office365-Filtering-Correlation-Id: 33388bf7-6f9b-4647-0b59-08dcb2b32e1e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?utf-8?B?QVQrcjd2bU81czRpWXNuVWlZOEY4cEg1ZFVMOHJuSkF6YkhyVWNoN2tRaTVY?= =?utf-8?B?WGpVSTRJcVd3K0JGak54cno3SnVPa0greVY4MzVhTnNRakNqbkg1K3BSa01y?= =?utf-8?B?Tjh1aGFpSU1kZmY2dkhmQXN0dE41NDcrQllHNUlKQWJnN3dQVjFqK01RNk93?= =?utf-8?B?UUsxbWRjUFBGTE9LN1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?utf-8?B?Z2pjamEvbHFkMlQwdDdieUc3YWs2QjBpREg3L05IOG1XcHI4NnM5YnpZdCty?= =?utf-8?B?Zm9hZCsyeWVYZ29yYnhvQzNTMFlxcXNIejJ2dEQxVEh1bE5PeFFYS0FZUGo4?= =?utf-8?B?VjA2emZIQnYranh1M0FwbzQrUnYrRTUzQTdPQkpKZ1pqdDU5YnFKeDNjS0ZH?= =?utf-8?Q?oFeaPFZBcEAO0XNEdd1N48kxa?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33388bf7-6f9b-4647-0b59-08dcb2b32e1e X-MS-Exchange-CrossTenant-AuthSource: IA1PR12MB6460.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 05:23:02.3536 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: pnj7CSzIFwtvMLZ6epa/J9qN3ZuBMjJ6q6W9KD1qKUaOnTnnOFTO6iuTPBxI5PWJASeRZk75o2OjnkqShMORWA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6786 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 01 Aug 2024 22:23:06 -0700 Resent-From: srikanth.aithal@amd.com Reply-To: devel@edk2.groups.io,srikanth.aithal@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: FKP1ifXNt3rM5mx9WH9jfS3Ex7686176AA= Content-Type: multipart/alternative; boundary="------------45hbmYA3fh6oRclQqiEuaz2G" Content-Language: en-US X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b="is5n7Ad/"; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io --------------45hbmYA3fh6oRclQqiEuaz2G Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 8/2/2024 9:26 AM, Sami Mujawar wrote: > > Hi Shrikanth, > > It appears I had missed out passing the correct virtio-scsi request > size when enqueuing the request. > > I have now fixed that in the pull request at > https://github.com/tianocore/edk2/pull/6038. > > Can you try the patch in the pull request at and let me know if it > fixes the issue, please? > Yes, this pull request fixes the issue. Thank you. Reported-by: Aithal Srikanth Tested-by: Aithal Srikanth > Regards, > > Sami Mujawar > > *From: *Sami Mujawar > *Date: *Thursday 1 August 2024 at 16:53 > *To: *"devel@edk2.groups.io" , > "srikanth.aithal@amd.com" , Ard Biesheuvel > , Jiewen Yao , Gerd > Hoffmann > *Subject: *Re: [edk2-devel] Patch OvmfPkg: Use heap memory for > virtio-scsi request causing regression > > Hi Srikanth, > > Thanks for reporting this issue. It is strange that the virtio-blk > driver is working with a similar change. > > I am looking into why this may be failing. > > Regards, > > Sami Mujawar > > *From: * on behalf of "Aithal, Srikanth via > groups.io" > *Reply to: *"devel@edk2.groups.io" , > "srikanth.aithal@amd.com" > *Date: *Thursday 1 August 2024 at 12:28 > *To: *"devel@edk2.groups.io" , Sami Mujawar > , Ard Biesheuvel , > Jiewen Yao , Gerd Hoffmann > *Subject: *[edk2-devel] Patch OvmfPkg: Use heap memory for virtio-scsi > request causing regression > *Resent from: * > *Resent date: *Thursday 1 August 2024 at 12:28 > > Hello all, > > After the patches [1fc55a39, b342070c] OvmfPkg: Use heap memory for > virtio-blk request/OvmfPkg: Use heap memory for virtio-scsi request > got merged, this regression is spotted. > > AMD SVM/SEV/SEVES guest boot fails with OVMF packages [Ia3264/X64] > built from today's upstream edk2 repository[Head: 85fad99]. > > Guest boot with OVMF.fd or only with OVMF_CODE.fd gets stuck at below > point: > > /Divisor   = 1 > BaudRate/Actual (115200/115200) = 100% > PciSioSerial: Create SIO child serial device - Device Error > PlatformBootManagerAfterConsole > Found Mass Storage device: PciRoot(0x0)/Pci(0x3,0x0) > InstallProtocolInterface: FA920010-6785-4941-B6EC-498C579F160A 3DEB82A0 > InstallProtocolInterface: 143B7632-B81B-4CB7-ABD3-B625A5B9BFFE 3DE10AA0 > InstallProtocolInterface: 0167CCC4-D0F7-4F21-A3EF-9E64B7CDCE8B 3DE5D4A0 > qemu-system-x86_64: wrong size for virtio-scsi headers <========== > gets hung/ > > If both OVMF code and vars file are provided the issue is not hit. > > Qemu command line to recreate the issue: > > /qemu-system-x86_64 \ > -machine q35,kernel_irqchip=split \ > -name guest=vm,debug-threads=on \ > -drive if=pflash,format=raw,unit=0,file=OVMF_CODE.fd,readonly \ > -cpu host \ > -m 1024 \ > -smp 1,cores=1,threads=1,dies=1,sockets=1 \ > -kernel bzImage \ > -append "root=/dev/sda rw console=ttyS0 net.ifnames=0 biosdevname=0 > movable_node swiotlb=65536 " \ > -drive id=disk0,file=22.04-server.qcow2,format=qcow2,if=none \ > -device virtio-scsi-pci,id=scsi0,disable-legacy=on,iommu_platform=true \ > -device scsi-hd,drive=disk0 \ > --enable-kvm \ > --nographic/ > > Thanks, > > Srikanth Aithal > > > > IMPORTANT NOTICE: The contents of this email and any attachments are > confidential and may also be privileged. If you are not the intended > recipient, please notify the sender immediately and do not disclose > the contents to any other person, use it for any purpose, or store or > copy the information in any medium. Thank you. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120204): https://edk2.groups.io/g/devel/message/120204 Mute This Topic: https://groups.io/mt/107663187/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- --------------45hbmYA3fh6oRclQqiEuaz2G Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 8/2/2024 9:26 AM, Sami Mujawar wrote:

Hi Shrikanth,

 

It appears I had missed out passing the correct virtio-scsi request size when enqueuing the request.

I have now fixed that in the pull request at https://github.com/tianocore/edk2/pull/6038.

Can you try the patch in the pull request at and let me know if it fixes the issue, please?

 

Yes, this pull request fixes the issue. Thank you.

Reported-by: Aithal Srikanth <sraithal@amd.com>

Tested-by: Aithal Srikanth <sraithal@amd.com>

Regards,

 

Sami Mujawar

 

From: Sami Mujawar <Sami.Mujawar@arm.com>
Date: Thursday 1 August 2024 at 16:53
To: "devel@edk2.groups.io" <devel@edk2.groups.io>, "srikanth.aithal@amd.com" <srikanth.aithal@amd.com>, Ard Biesheuvel <ardb+tianocore@kernel.org>, Jiewen Yao <jiewen.yao@intel.com>, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [edk2-devel] Patch OvmfPkg: Use heap memory for virtio-scsi request causing regression

 

Hi Srikanth,

 

Thanks for reporting this issue. It is strange that the virtio-blk driver is working with a similar change.

I am looking into why this may be failing.

 

Regards,

 

Sami Mujawar

From: <devel@edk2.groups.io> on behalf of "Aithal, Srikanth via groups.io" <srikanth.aithal=amd.com@groups.io>
Reply to: "devel@edk2.groups.io" <devel@edk2.groups.io>, "srikanth.aithal@amd.com" <srikanth.aithal@amd.com>
Date: Thursday 1 August 2024 at 12:28
To: "devel@edk2.groups.io" <devel@edk2.groups.io>, Sami Mujawar <Sami.Mujawar@arm.com>, Ard Biesheuvel <ardb+tianocore@kernel.org>, Jiewen Yao <jiewen.yao@intel.com>, Gerd Hoffmann <kraxel@redhat.com>
Subject: [edk2-devel] Patch OvmfPkg: Use heap memory for virtio-scsi request causing regression
Resent from: <srikanth.aithal@amd.com>
Resent date: Thursday 1 August 2024 at 12:28

 

Hello all,

After the patches [1fc55a39, b342070c] OvmfPkg: Use heap memory for virtio-blk request/OvmfPkg: Use heap memory for virtio-scsi request got merged, this regression is spotted.

AMD SVM/SEV/SEVES guest boot fails with OVMF packages [Ia3264/X64] built from today's upstream edk2 repository[Head: 85fad99]. 

Guest boot with OVMF.fd or only with OVMF_CODE.fd gets stuck at below point:

Divisor   = 1
BaudRate/Actual (115200/115200) = 100%
PciSioSerial: Create SIO child serial device - Device Error
PlatformBootManagerAfterConsole
Found Mass Storage device: PciRoot(0x0)/Pci(0x3,0x0)
InstallProtocolInterface: FA920010-6785-4941-B6EC-498C579F160A 3DEB82A0
InstallProtocolInterface: 143B7632-B81B-4CB7-ABD3-B625A5B9BFFE 3DE10AA0
InstallProtocolInterface: 0167CCC4-D0F7-4F21-A3EF-9E64B7CDCE8B 3DE5D4A0
qemu-system-x86_64: wrong size for virtio-scsi headers   <========== gets hung

If both OVMF code and vars file are provided the issue is not hit.

Qemu command line to recreate the issue:

qemu-system-x86_64 \
-machine q35,kernel_irqchip=split \
-name guest=vm,debug-threads=on \
-drive if=pflash,format=raw,unit=0,file=OVMF_CODE.fd,readonly \
-cpu host \
-m 1024 \
-smp 1,cores=1,threads=1,dies=1,sockets=1 \
-kernel bzImage \
-append "root=/dev/sda rw console=ttyS0 net.ifnames=0 biosdevname=0 movable_node swiotlb=65536 " \
-drive id=disk0,file=22.04-server.qcow2,format=qcow2,if=none \
-device virtio-scsi-pci,id=scsi0,disable-legacy=on,iommu_platform=true \
-device scsi-hd,drive=disk0 \
--enable-kvm \
--nographic

Thanks,

Srikanth Aithal

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#120204) | | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--------------45hbmYA3fh6oRclQqiEuaz2G--