qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: David Kozub <zub@linux.fjfi.cvut.cz>
Cc: kwolf@redhat.com, jsnow@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Emulation of TCG OPAL self-encrypting drive
Date: Thu, 10 Jan 2019 10:32:12 +0000	[thread overview]
Message-ID: <20190110103212.GE19025@stefanha-x1.localdomain> (raw)
In-Reply-To: <alpine.LRH.2.21.1901092339260.19055@linux.fjfi.cvut.cz>

[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]

On Thu, Jan 10, 2019 at 12:05:32AM +0100, David Kozub wrote:
> On Mon, 7 Jan 2019, Stefan Hajnoczi wrote:
> 
> > QEMU supports LUKS encrypted disk images so no new code is needed for
> > the actual encryption.
> 
> Thanks for the feedback, Stefan. I know very little about qemu internals (I
> looked around a bit). One issue is: OPAL needs some persistent data outside
> of the actual user-visible data. How does that fit in with storage in QEMU?
> Perhaps the implementation could just occupy a fixed size of the associated
> storage for the OPAL state.

See block/crypto.c for the LUKS block driver.  Perhaps OPAL needs to
something similar (OPAL state + LUKS).

> > > Or, just a pass-through to a block device in the host - but a pass-through
> > > that would allow OPAL commands.
> > 
> > You can pass through a storage controller using PCI passthrough or you
> > can pass through a SCSI LUN, but there is no ATA passthrough.
> 
> I currently don't have a usable box for PCI passthrough. I'm thinking that
> ATA passthrough could be generally usable for any fiddling and perhaps not
> too difficult to implement.
> 
> If I understand QEMU sources correctly, this needs to touch hw/ide/core.c
> (ide_exec_cmd), either adding a layer for OPAL, or just forwarding ATA
> commands for pass-through. Right?

Yes.

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

  reply	other threads:[~2019-01-10 10:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-05 18:27 [Qemu-devel] Emulation of TCG OPAL self-encrypting drive David Kozub
2019-01-07  9:16 ` Stefan Hajnoczi
2019-01-09 23:05   ` David Kozub
2019-01-10 10:32     ` Stefan Hajnoczi [this message]
2019-01-16 22:35   ` John Snow
2019-01-17 23:04     ` David Kozub
2019-01-18  0:01       ` John Snow
2019-01-23 22:39         ` David Kozub
2019-01-23 22:58           ` John Snow
2019-01-24 10:24             ` David Kozub
2019-01-24 17:41               ` John Snow

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=20190110103212.GE19025@stefanha-x1.localdomain \
    --to=stefanha@gmail.com \
    --cc=jsnow@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=zub@linux.fjfi.cvut.cz \
    /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).