Re: [Qemu-devel] Emulation of TCG OPAL self-encrypting drive

2019-01-24 Thread David Kozub
On Wed, 23 Jan 2019, John Snow wrote: On 1/23/19 5:39 PM, David Kozub wrote: On Thu, 17 Jan 2019, John Snow wrote: I think SG_IO IOCTL allows one to send a single ATA command and the call blocks until the request is processed. The problem(?) with this is that you don't get to choos

Re: [Qemu-devel] Emulation of TCG OPAL self-encrypting drive

2019-01-23 Thread David Kozub
On Thu, 17 Jan 2019, John Snow wrote: Admittedly I'm not too sure of how the ATA support in Linux works to know what the passthrough would actually look like, bit-wise. I know there's some SCSI abstraction layer that can drive ATA devices, but I'm not completely clear on the actual plumbing. How

Re: [Qemu-devel] Emulation of TCG OPAL self-encrypting drive

2019-01-17 Thread David Kozub
On Wed, 16 Jan 2019, John Snow wrote: I can answer some questions about the ATA layer, but I'm not well read on OPAL or the interrelationship between the two. We don't have an ATA-style passthrough in QEMU right now and nobody has ever asked! Would you mind elaborating for me what kind of setup

Re: [Qemu-devel] Emulation of TCG OPAL self-encrypting drive

2019-01-09 Thread David Kozub
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 t

[Qemu-devel] Emulation of TCG OPAL self-encrypting drive

2019-01-05 Thread David Kozub
Hi, Can QEMU emulate an OPAL disk? The only relevant thing I found is a post from 2017 about TPM that mentions OPAL: https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg04586.html specifically this bit: Well, at some point somebody's going to want us to implement this, but... they can d

[Qemu-devel] [PATCH] Add SH4 ELF magic into qemu-binfmt-conf.sh.

2009-12-17 Thread David Kozub
Signed-off-by: David Kozub --- qemu-binfmt-conf.sh |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/qemu-binfmt-conf.sh b/qemu-binfmt-conf.sh index ba916ac..9c65c9a 100644 --- a/qemu-binfmt-conf.sh +++ b/qemu-binfmt-conf.sh @@ -1,5 +1,5 @@ #!/bin/sh -# enable

Re: [Qemu-devel] [PATCH] Add SH4 ELF magic into qemu-binfmt-conf.sh.

2009-12-17 Thread David Kozub
On Thu, 17 Dec 2009, Richard Henderson wrote: ;; + sh4) + cpu="sh4" + ;; You don't need this entry. That table is supposed to be for changing the name. You'd use it if uname returned sh4eb though... Indeed, I got swayed. Then also "m68k" and "i386" are superfluous there. As for sh4eb, AF

[Qemu-devel] [PATCH] Add SH4 ELF magic into qemu-binfmt-conf.sh.

2009-12-17 Thread David Kozub
Signed-off-by: David Kozub --- qemu-binfmt-conf.sh |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/qemu-binfmt-conf.sh b/qemu-binfmt-conf.sh index ba916ac..9c65c9a 100644 --- a/qemu-binfmt-conf.sh +++ b/qemu-binfmt-conf.sh @@ -1,5 +1,5 @@ #!/bin/sh -# enable