Discussion of the implementations of VIRTIO specification
 help / color / mirror / Atom feed
From: Linlin Zhang <linlin.zhang@oss.qualcomm.com>
To: Eric Biggers <ebiggers@kernel.org>,
	Stefan Hajnoczi <stefanha@redhat.com>
Cc: virtio-dev@lists.linux.dev, neeraj.soni@oss.qualcomm.com
Subject: Re: [PATCH v1] virtio-blk: Add inline encryption support
Date: Fri, 28 Aug 2026 23:47:02 +0800	[thread overview]
Message-ID: <4f5ad0ca-de69-4bdf-8d4f-33b94e258205@oss.qualcomm.com> (raw)
In-Reply-To: <20260827184905.GC2137493@google.com>



On 8/28/2026 2:49 AM, Eric Biggers wrote:
> On Tue, Aug 25, 2026 at 07:34:09PM -0400, Stefan Hajnoczi wrote:
>> My concern about the key programming interface being a vendor-specific
>> interface beyond the scope of the VIRTIO spec is that I'm not sure if
>> there will ever be any other users. In other words, should ICE actually
>> go into the VIRTIO spec or is it a vendor-specific functionality?
>>
>> The approach with a separate key programming interface seems very
>> specific to UFS and Qualcomm's SCM. For example, is it possible to have
>> multiple virtio-blk devices with their own ICEs (key spaces) or does
>> this design assume there is only one virtio-blk device with ICE per
>> guest because existing SoCs only support that?
>>
>> It would be cleaner and more obvious from a spec perspective if the key
>> programming interface was part of the VIRTIO spec. Then the spec would
>> be self-contained and the vendor-specific part would only be in the
>> device's implementation on the host without also requiring
>> vendor-specific drivers inside the guest.
>>
>> I took a look at the few blk_ll_crypto_ops drivers in the Linux kernel
>> and they are more or less copy-pasted code that only exists because
>> there is no standardized hardware interface. I think we should avoid
>> propagating that into VIRTIO and instead just define a key programming
>> virtqueue for the virtio-blk device once and for all.
>>
>> Having said that, there is much I don't know about ICE, ARM
>> virtualization, etc and I would like to hear your thoughts if you think
>> I'm wrong.
> 
> Looking at the actual Linux kernel patchset that got sent out today
> (https://lore.kernel.org/linux-block/20260827160806.1295313-1-linlin.zhang@oss.qualcomm.com/T/#u),
> I agree with Stefan.  It would be much simpler (and also much more open
> to other implementations) if the key operations were part of the
> virtio-blk protocol, rather than some unspecified out-of-band thing.

Thanks for your comment!

I replied in detail in the Linux kernel patchset thread.

> 
> - Eric


  parent reply	other threads:[~2026-08-28 15:47 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-14 14:23 [PATCH v1] virtio-blk: Add inline encryption support Linlin Zhang
2026-08-17 17:16 ` Stefan Hajnoczi
2026-08-18  4:53   ` Linlin Zhang
     [not found] ` <20260819042915.GA9971@sol>
2026-08-19 11:10   ` Linlin Zhang
     [not found] ` <20260819043321.GB9971@sol>
2026-08-19 11:30   ` Linlin Zhang
2026-08-19 19:35     ` Stefan Hajnoczi
2026-08-20 14:37       ` Linlin Zhang
2026-08-25 23:34         ` Stefan Hajnoczi
2026-08-28 13:08           ` Linlin Zhang
     [not found]           ` <20260827184905.GC2137493@google.com>
2026-08-28 15:47             ` Linlin Zhang [this message]
2026-08-19 21:18 ` Stefan Hajnoczi
2026-08-20 16:18   ` Linlin Zhang
2026-08-21 12:49     ` Linlin Zhang
2026-08-21 15:33       ` Stefan Hajnoczi
2026-08-22 10:04         ` Linlin Zhang
2026-08-21 15:30     ` Stefan Hajnoczi
2026-08-22 10:43       ` Linlin Zhang
2026-08-24 15:44         ` Stefan Hajnoczi
2026-08-28  8:29           ` Linlin Zhang
  -- strict thread matches above, loose matches on Subject: below --
2026-01-27 14:14 Linlin Zhang
2026-01-27 14:20 ` Linlin Zhang
2026-01-27 21:09   ` Stefan Hajnoczi
2026-01-30 10:23     ` Linlin Zhang
2026-02-02 15:56       ` Stefan Hajnoczi
2026-02-03 10:06         ` Linlin Zhang
2026-02-03 14:43           ` Stefan Hajnoczi
2026-02-04 13:57             ` Linlin Zhang
2026-02-04 17:27               ` Stefan Hajnoczi

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=4f5ad0ca-de69-4bdf-8d4f-33b94e258205@oss.qualcomm.com \
    --to=linlin.zhang@oss.qualcomm.com \
    --cc=ebiggers@kernel.org \
    --cc=neeraj.soni@oss.qualcomm.com \
    --cc=stefanha@redhat.com \
    --cc=virtio-dev@lists.linux.dev \
    /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