[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190811055607.GA12488@lst.de>
Date: Sun, 11 Aug 2019 07:56:07 +0200
From: Christoph Hellwig <hch@....de>
To: Ram Pai <linuxram@...ibm.com>
Cc: "Michael S. Tsirkin" <mst@...hat.com>,
Thiago Jung Bauermann <bauerman@...ux.ibm.com>,
virtualization@...ts.linux-foundation.org,
linuxppc-devel@...ts.ozlabs.org, iommu@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org, Jason Wang <jasowang@...hat.com>,
Christoph Hellwig <hch@....de>,
David Gibson <david@...son.dropbear.id.au>,
Alexey Kardashevskiy <aik@...ux.ibm.com>,
Paul Mackerras <paulus@...abs.org>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>
Subject: Re: [RFC PATCH] virtio_ring: Use DMA API if guest memory is
encrypted
sev_active() is gone now in linux-next, at least as a global API.
And once again this is entirely going in the wrong direction. The only
way using the DMA API is going to work at all is if the device is ready
for it. So we need a flag on the virtio device, exposed by the
hypervisor (or hardware for hw virtio devices) that says: hey, I'm real,
don't take a shortcut.
And that means on power and s390 qemu will always have to set thos if
you want to be ready for the ultravisor and co games. It's not like we
haven't been through this a few times before, have we?
Powered by blists - more mailing lists