qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] tpm_crb: mark memory as protected


From: Laurent Vivier
Subject: Re: [PATCH 2/2] tpm_crb: mark memory as protected
Date: Thu, 22 Jun 2023 14:59:51 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

On 6/21/23 11:13, David Hildenbrand wrote:
On 20.06.23 21:50, Laurent Vivier wrote:
This memory is not correctly aligned and cannot be registered
by vDPA and VFIO.

An error is reported for vhost-vdpa case:
qemu-kvm: vhost_vdpa_listener_region_add received unaligned region

To make it ignored by VFIO and vDPA devices, mark it as RAM_PROTECTED.

So, VFIO will simply skip these sections via vfio_listener_valid_section() I 
guess.

Yes, it will report an error but it will happily continue.

So regarding vDPA, we're also only concerned about removing the reported error, everything else works as expected?


Yes, it has been tested and vDPA works as expected.

Thanks,
Laurent




reply via email to

[Prev in Thread] Current Thread [Next in Thread]