[PATCH v2 0/4] Add a new backend for cryptodev

2022-10-08 Thread Lei He
v1 --> v2: - Fix compile errors when neither 'nettle' nor 'gcrypt' are enabled. - Trivial changes to error codes when neither 'nettle' nor 'gcrypt' are enabled. This patch adds a new backend called LKCF to cryptodev, LKCF stands for Linux Kernel Cryptography Framework. If a cryptographic accelerat

[PATCH v2 2/4] crypto: Support DER encodings

2022-10-08 Thread Lei He
Add encoding interfaces for DER encoding: 1. support decoding of 'bit string', 'octet string', 'object id' and 'context specific tag' for DER encoder. 2. implemented a simple DER encoder. 3. add more testsuits for DER encoder. Signed-off-by: lei he --- crypto/der.c | 307

[PATCH v2 4/4] cryptodev: Add a lkcf-backend for cryptodev

2022-10-08 Thread Lei He
cryptodev: Added a new type of backend named lkcf-backend for cryptodev. This backend upload asymmetric keys to linux kernel, and let kernel do the accelerations if possible. The lkcf stands for Linux Kernel Cryptography Framework. Signed-off-by: lei he --- backends/cryptodev-lkcf.c | 645 +

[PATCH v2 1/4] virtio-crypto: Support asynchronous mode

2022-10-08 Thread Lei He
virtio-crypto: Modify the current interface of virtio-crypto device to support asynchronous mode. Signed-off-by: lei he --- backends/cryptodev-builtin.c| 69 ++--- backends/cryptodev-vhost-user.c | 51 +-- backends/cryptodev.c| 44 +++--- hw/virtio/virtio-crypto.c

[PATCH v2 3/4] crypto: Support export akcipher to pkcs8

2022-10-08 Thread Lei He
crypto: support export RSA private keys with PKCS#8 standard. So that users can upload this private key to linux kernel. Signed-off-by: lei he --- crypto/akcipher.c | 18 ++ crypto/rsakey.c | 42 ++ crypto/rsakey.h

[PATCH v2] vhost-vdpa: allow passing opened vhostfd to vhost-vdpa

2022-10-08 Thread Si-Wei Liu
Similar to other vhost backends, vhostfd can be passed to vhost-vdpa backend as another parameter to instantiate vhost-vdpa net client. This would benefit the use case where only open file descriptors, as opposed to raw vhost-vdpa device paths, are accessible from the QEMU process. (qemu) netdev_a

Re: [External] Re: [PATCH 0/4] Add a new backend for cryptodev

2022-10-08 Thread Lei He
On 2022/10/7 22:25, Michael S. Tsirkin wrote: On Mon, Sep 19, 2022 at 11:53:16AM +0800, Lei He wrote: This patch adds a new backend called LKCF to cryptodev, LKCF stands for Linux Kernel Cryptography Framework. If a cryptographic accelerator that supports LKCF is installed on the the host (you c

Re: [PATCH v8 00/16] QMP/HMP: introduce 'dumpdtb'

2022-10-08 Thread Daniel Henrique Barboza
Philippe, I'm going to push the acked patches to ppc-next. If you send a r-b for patches 2 and 4 I can push them as well. Alistair, I intend to push the acked RISC-V patches (patches 14 and 15) via the ppc-next tree as well. Let me know if you'd rather pick them via the RISC-V tree. Thanks,

[PATCH v3] linux-user: mprotect() should returns 0 when len is 0.

2022-10-08 Thread Soichiro Isshiki
On Sat, Oct 8, 2022 at 12:41 AM Soichiro Isshiki wrote: > A validation for wrap-around was added, I think it is neccesory. I noticed the validation for wrap-around is *not* necessary, because it is done by guest_range_valid_untagged(). Signed-off-by: Soichiro Isshiki --- linux-user/mmap.c | 1

[PATCH] ui/gtk: Fix the implicit mouse ungrabbing logic

2022-10-08 Thread Akihiko Odaki
Although the grab menu item represents the tabbed displays, the old implicit mouse ungrabbing logic changes the grab menu item even for an untabbed display. Leave the grab menu item when implicitly ungrabbing mouse for an untabbed display. The new ungrabbing logic introduced in gd_mouse_mode_chang

Re: [PATCH 1/8] hw/avr: Add limited support for avr gpio registers

2022-10-08 Thread Hee-cheol Yang
Sorry for your inconvenience. There's something wrong on my patchwork. I'll upload them again and share the link soon. Thanks again. Best regards Heecheol yang From: Michael Rolnik Sent: Wednesday, September 28, 2022 2:52:48 AM To: Heecheol Yang Cc: qemu-devel

[PATCH] include/qemu/atomic128: Support 16-byte atomic read/write for Intel AVX

2022-10-08 Thread Richard Henderson
Intel has now given guarantees about the atomicity of SSE read and write instructions on cpus supporting AVX. We can use these instead of the much slower cmpxchg16b. Derived from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104688 Signed-off-by: Richard Henderson --- Paolo, we probably ought t

Re: [PATCH] include/qemu/atomic128: Support 16-byte atomic read/write for Intel AVX

2022-10-08 Thread Richard Henderson
On 10/8/22 08:36, Richard Henderson wrote: Intel has now given guarantees about the atomicity of SSE read and write instructions on cpus supporting AVX. We can use these instead of the much slower cmpxchg16b. Derived from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104688 Signed-off-by: Richa

Re: [PATCH v2 00/13] ppc/e500: Add support for two types of flash, cleanup

2022-10-08 Thread Bernhard Beschow
Am 4. Oktober 2022 12:43:35 UTC schrieb Daniel Henrique Barboza : >Hey, > >On 10/3/22 18:27, Philippe Mathieu-Daudé wrote: >> Hi Daniel, >> >> On 3/10/22 22:31, Bernhard Beschow wrote: >>> Cover letter: >>> ~ >>> >>> This series adds support for -pflash and direct SD card access to t

Re: [PATCH v8 2/8] KVM: Extend the memslot to support fd-based private memory

2022-10-08 Thread Jarkko Sakkinen
On Sat, Oct 08, 2022 at 12:54:32AM +0300, Jarkko Sakkinen wrote: > On Fri, Oct 07, 2022 at 02:58:54PM +, Sean Christopherson wrote: > > On Fri, Oct 07, 2022, Jarkko Sakkinen wrote: > > > On Thu, Oct 06, 2022 at 03:34:58PM +, Sean Christopherson wrote: > > > > On Thu, Oct 06, 2022, Jarkko Sa

Re: [PATCH v8 2/8] KVM: Extend the memslot to support fd-based private memory

2022-10-08 Thread Jarkko Sakkinen
On Sat, Oct 08, 2022 at 07:15:17PM +0300, Jarkko Sakkinen wrote: > On Sat, Oct 08, 2022 at 12:54:32AM +0300, Jarkko Sakkinen wrote: > > On Fri, Oct 07, 2022 at 02:58:54PM +, Sean Christopherson wrote: > > > On Fri, Oct 07, 2022, Jarkko Sakkinen wrote: > > > > On Thu, Oct 06, 2022 at 03:34:58PM

Re: [PATCH v2 2/2] virtio-blk: add zoned storage emulation for zoned devices

2022-10-08 Thread Sam Li
Stefan Hajnoczi 于2022年10月6日周四 23:04写道: > > On Thu, Sep 29, 2022 at 05:48:21PM +0800, Sam Li wrote: > > This patch extends virtio-blk emulation to handle zoned device commands > > by calling the new block layer APIs to perform zoned device I/O on > > behalf of the guest. It supports Report Zone, fo

Re: [PATCH v2 04/13] hw/ppc/e500: Reduce usage of sysbus API

2022-10-08 Thread Bin Meng
On Tue, Oct 4, 2022 at 5:24 AM Bernhard Beschow wrote: > > PlatformBusDevice has an mmio attribute which gets aliased to > SysBusDevice::mmio[0]. So PlatformbusDevice::mmio can be used directly, > avoiding the sysbus API. > > Signed-off-by: Bernhard Beschow > --- > hw/ppc/e500.c | 2 +- > 1 file

Re: [PATCH v2 05/13] hw/ppc/mpc8544ds: Rename wrongly named method

2022-10-08 Thread Bin Meng
On Tue, Oct 4, 2022 at 5:15 AM Bernhard Beschow wrote: > > Signed-off-by: Bernhard Beschow > --- > hw/ppc/mpc8544ds.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Bin Meng

Re: [PATCH 04/11] hw/ppc/mpc8544ds: Add platform bus

2022-10-08 Thread Bin Meng
Hi Bernhard, On Sat, Sep 17, 2022 at 1:19 AM Bernhard Beschow wrote: > > Am 16. September 2022 06:15:53 UTC schrieb Bin Meng : > >On Thu, Sep 15, 2022 at 11:29 PM Bernhard Beschow wrote: > >> > >> Models the real device more closely. > > > >Please describe the source (e.g.: I assume it's MPC8544

Re: [PATCH v2 2/2] virtio-blk: add zoned storage emulation for zoned devices

2022-10-08 Thread Sam Li
Sam Li 于2022年10月9日周日 09:54写道: > > Stefan Hajnoczi 于2022年10月6日周四 23:04写道: > > > > On Thu, Sep 29, 2022 at 05:48:21PM +0800, Sam Li wrote: > > > This patch extends virtio-blk emulation to handle zoned device commands > > > by calling the new block layer APIs to perform zoned device I/O on > > > beh

Re: [PATCH v2 06/13] hw/ppc/mpc8544ds: Add platform bus

2022-10-08 Thread Bin Meng
On Tue, Oct 4, 2022 at 5:22 AM Bernhard Beschow wrote: > > Models the real device more closely. > > Address and size values are taken from mpc8544.dts from the linux-5.17.7 > tree. The IRQ range is taken from e500plat.c. > > Signed-off-by: Bernhard Beschow > --- > hw/ppc/mpc8544ds.c | 6 ++ >

Re: [PATCH v2 00/13] ppc/e500: Add support for two types of flash, cleanup

2022-10-08 Thread Bin Meng
On Sun, Oct 9, 2022 at 12:11 AM Bernhard Beschow wrote: > > Am 4. Oktober 2022 12:43:35 UTC schrieb Daniel Henrique Barboza > : > >Hey, > > > >On 10/3/22 18:27, Philippe Mathieu-Daudé wrote: > >> Hi Daniel, > >> > >> On 3/10/22 22:31, Bernhard Beschow wrote: > >>> Cover letter: > >>>

Re: [PATCH v2 09/13] hw/ppc/e500: Implement pflash handling

2022-10-08 Thread Bin Meng
On Tue, Oct 4, 2022 at 5:40 AM Bernhard Beschow wrote: > > Allows e500 boards to have their root file system reside on flash using > only builtin devices located in the eLBC memory region. > > Note that the flash memory area is only created when a -pflash argument is > given, and that the size is

Re: [PATCH v2 07/11] acpi/tests/bits: add python test that exercizes QEMU bios tables using biosbits

2022-10-08 Thread Ani Sinha
On Wed, Sep 28, 2022 at 1:14 PM Thomas Huth wrote: > > On 28/09/2022 09.06, Daniel P. Berrangé wrote: > > On Tue, Sep 27, 2022 at 06:09:22PM -0400, Michael S. Tsirkin wrote: > >> On Tue, Sep 27, 2022 at 11:44:56PM +0200, Paolo Bonzini wrote: > >>> I also second the idea of using avocado instead of

Re: [PATCH v2] vhost-vdpa: allow passing opened vhostfd to vhost-vdpa

2022-10-08 Thread Jason Wang
On Sat, Oct 8, 2022 at 5:04 PM Si-Wei Liu wrote: > > Similar to other vhost backends, vhostfd can be passed to vhost-vdpa > backend as another parameter to instantiate vhost-vdpa net client. > This would benefit the use case where only open file descriptors, as > opposed to raw vhost-vdpa device p

[PATCH V3 0/4] PASID support for Intel IOMMU

2022-10-08 Thread Jason Wang
Hi All: This series tries to introduce PASID support for Intel IOMMU. The work is based on the previous scalabe mode support by implement the ECAP_PASID. A new "x-pasid-mode" is introduced to enable this mode. All internal vIOMMU codes were extended to support PASID instead of the current RID2PASI

[PATCH V3 1/4] intel-iommu: don't warn guest errors when getting rid2pasid entry

2022-10-08 Thread Jason Wang
We use to warn on wrong rid2pasid entry. But this error could be triggered by the guest and could happens during initialization. So let's don't warn in this case. Signed-off-by: Jason Wang --- hw/i386/intel_iommu.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/i386

[PATCH V3 3/4] intel-iommu: convert VTD_PE_GET_FPD_ERR() to be a function

2022-10-08 Thread Jason Wang
We used to have a macro for VTD_PE_GET_FPD_ERR() but it has an internal goto which prevents it from being reused. This patch convert that macro to a dedicated function and let the caller to decide what to do (e.g using goto or not). This makes sure it can be re-used for other function that requires

Re: [PATCH v10 00/17] qapi: net: add unix socket type support to netdev backend

2022-10-08 Thread Jason Wang
On Thu, Oct 6, 2022 at 7:21 PM Michael S. Tsirkin wrote: > > On Wed, Oct 05, 2022 at 06:20:34PM +0200, Laurent Vivier wrote: > > "-netdev socket" only supports inet sockets. > > > > It's not a complex task to add support for unix sockets, but > > the socket netdev parameters are not defined to man

[PATCH V3 2/4] intel-iommu: drop VTDBus

2022-10-08 Thread Jason Wang
We introduce VTDBus structure as an intermediate step for searching the address space. This works well with SID based matching/lookup. But when we want to support SID plus PASID based address space lookup, this intermediate steps turns out to be a burden. So the patch simply drops the VTDBus struct

[PATCH V3 4/4] intel-iommu: PASID support

2022-10-08 Thread Jason Wang
This patch introduce ECAP_PASID via "x-pasid-mode". Based on the existing support for scalable mode, we need to implement the following missing parts: 1) tag VTDAddressSpace with PASID and support IOMMU/DMA translation with PASID 2) tag IOTLB with PASID 3) PASID cache and its flush 4) PASID bas

[PATCH] linux-user: Implement faccessat2

2022-10-08 Thread WANG Xuerui
User space has been preferring this syscall for a while, due to its closer match with C semantics, and newer platforms such as LoongArch apparently have libc implementations that don't fallback to faccessat so normal access checks are failing without the emulation in place. Tested by successfully

Re: [PATCH v2 07/11] acpi/tests/bits: add python test that exercizes QEMU bios tables using biosbits

2022-10-08 Thread Ani Sinha
On Sun, Oct 9, 2022 at 10:51 AM Ani Sinha wrote: > > On Wed, Sep 28, 2022 at 1:14 PM Thomas Huth wrote: > > > > > > > Do not do any of this stuff, it is irrelevant to QEMU's needs. > > > A developer using Avocado with QEMU does nothing more than: > > > > > > make check-avocado > > > > Right.

Re: [PATCH 1/4] hw/acpi/aml-build: Only generate cluster node in PPTT when specified

2022-10-08 Thread wangyanan (Y)
Hi Yicong, On 2022/9/22 21:11, Yicong Yang wrote: From: Yicong Yang Currently we'll always generate a cluster node no matter user has specified '-smp clusters=X' or not. Cluster is an optional level and it's unncessary to build it if user don't need. So only generate it when user specify explic