qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
	qemu-devel@nongnu.org,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"David Hildenbrand" <david@redhat.com>,
	"Peter Xu" <peterx@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Mattias Nissler" <mnissler@rivosinc.com>,
	"Jonathan Cameron" <Jonathan.Cameron@huawei.com>
Subject: Re: [PATCH, v2] physmem: avoid bounce buffer too small
Date: Thu, 29 Feb 2024 15:17:01 +0100	[thread overview]
Message-ID: <4797d9ef-65f4-483e-9bb7-f79bbfa5172d@canonical.com> (raw)
In-Reply-To: <CAFEAcA85nwJ-qfzFVYBY0kiD7mEtr5UHRD_X_s=Vv7eaoHD_bA@mail.gmail.com>

On 29.02.24 13:34, Peter Maydell wrote:
> On Thu, 29 Feb 2024 at 11:17, Heinrich Schuchardt
> <heinrich.schuchardt@canonical.com> wrote:
>>> But yes, I'm not surprised that CXL runs into this. Heinrich,
>>> are you doing CXL testing, or is this some other workload?
>>
>> I am running the UEFI Self-Certification Tests (SCT) on EDK 2 using:
>>
>> qemu-system-riscv64 \
>>         -M virt,acpi=off -accel tcg -m 4096 \
>>         -serial mon:stdio \
>>         -device virtio-gpu-pci \
>>         -device qemu-xhci \
>>         -device usb-kbd \
>>         -drive
>> if=pflash,format=raw,unit=0,file=RISCV_VIRT_CODE.fd,readonly=on \
>>         -drive if=pflash,format=raw,unit=1,file=RISCV_VIRT_VARS.fd \
>>         -drive file=sct.img,format=raw,if=virtio \
>>         -device virtio-net-device,netdev=net0 \
>>         -netdev user,id=net0
>>
>> This does not invoke any CXL related stuff.
> 
> Hmm, that doesn't seem like it ought to be running into this.
> What underlying memory region is the guest trying to do
> the virtio queue access to?
> 
> -- PMM

The error occurs while the SCT is executing function 
BBTestReadBlocksConformanceAutoTest 
(https://github.com/tianocore/edk2-test/blob/cabb98d44be94e7547605435a0be7c4946d10f8b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/BlockIo/BlackBoxTest/BlockIoBBTestConformance.c#L45)

This code is accessing the drive defined as
-drive file=sct.img,format=raw,if=virtio .

In the conformance test correct error handling for invalid parameters of 
the UEFI block IO protocol is tested. This includes calling the UEFI API to

* read with incorrectly aligned buffers
* read with invalid LBA parameter
* read with buffer size not being a multiple of the sector size

In all these cases the UEFI API implemented by EDK II is expected to 
return an error.

Best regards

Heinrich


  parent reply	other threads:[~2024-02-29 14:17 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-28 12:59 [PATCH, v2] physmem: avoid bounce buffer too small Heinrich Schuchardt
2024-02-28 15:06 ` Philippe Mathieu-Daudé
2024-02-28 18:27   ` Heinrich Schuchardt
2024-02-28 18:39     ` Peter Maydell
2024-02-28 19:07       ` Heinrich Schuchardt
2024-02-29  1:11         ` Peter Xu
2024-02-29 10:22           ` Heinrich Schuchardt
2024-02-29 10:36             ` Mattias Nissler
2024-02-29 10:46             ` Jonathan Cameron via
2024-02-29  9:38         ` Peter Maydell
2024-02-29 10:59           ` Jonathan Cameron via
2024-02-29 11:11             ` Peter Maydell
2024-02-29 11:17               ` Heinrich Schuchardt
2024-02-29 12:34                 ` Peter Maydell
2024-02-29 12:52                   ` Mattias Nissler
2024-02-29 13:19                     ` Peter Maydell
2024-02-29 14:17                   ` Heinrich Schuchardt [this message]
2024-02-29 14:52                     ` Peter Maydell
2024-02-29 11:18               ` Mattias Nissler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4797d9ef-65f4-483e-9bb7-f79bbfa5172d@canonical.com \
    --to=heinrich.schuchardt@canonical.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=david@redhat.com \
    --cc=mnissler@rivosinc.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=peterx@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).