Received: from eggs.gnu.org ([2001:4830:134:3::10]:38011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9rwP-0002kU-7w for qemu-devel@nongnu.org; Thu, 24 Nov 2016 06:11:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9rwK-0003Mv-5x for qemu-devel@nongnu.org; Thu, 24 Nov 2016 06:11:45 -0500 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:33223) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c9rwJ-0003Jv-Tm for qemu-devel@nongnu.org; Thu, 24 Nov 2016 06:11:40 -0500 Received: by mail-wm0-x244.google.com with SMTP id u144so4650248wmu.0 for ; Thu, 24 Nov 2016 03:11:39 -0800 (PST) Date: Thu, 24 Nov 2016 11:11:35 +0000 From: Stefan Hajnoczi Message-ID: <20161124111135.GC9117@stefanha-x1.localdomain> References: <20161118072621.GA2607@localhost.localdomain> <20161118100210.GA28853@stefanha-x1.localdomain> <4F9BDA10-1D17-4420-A332-9834E84BF0BC@veritas.com> <20161118115450.GB5371@redhat.com> <20161118133611.GC5371@redhat.com> <40265568-6388-e302-0bbf-a08a6746a686@redhat.com> <5DCF5E88-0BC6-443B-B557-9A72D32A4D49@veritas.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yLVHuoLXiP9kZBkt" Content-Disposition: inline In-Reply-To: <5DCF5E88-0BC6-443B-B557-9A72D32A4D49@veritas.com> Subject: Re: [Qemu-devel] [PATCH v7 RFC] block/vxhs: Initial commit to add Veritas HyperScale VxHS block device support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ketan Nilangekar Cc: Paolo Bonzini , ashish mittal , "Daniel P. Berrange" , Jeff Cody , qemu-devel , Kevin Wolf , Markus Armbruster , Fam Zheng , Ashish Mittal , Abhijit Dey , Buddhi Madhav , "Venkatesha M.G." , Nitin Jerath --yLVHuoLXiP9kZBkt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 24, 2016 at 05:44:37AM +0000, Ketan Nilangekar wrote: > On 11/24/16, 4:07 AM, "Paolo Bonzini" wrote: > >On 23/11/2016 23:09, ashish mittal wrote: > >> On the topic of protocol security - > >>=20 > >> Would it be enough for the first patch to implement only > >> authentication and not encryption? > > > >Yes, of course. However, as we introduce more and more QEMU-specific > >characteristics to a protocol that is already QEMU-specific (it doesn't > >do failover, etc.), I am still not sure of the actual benefit of using > >libqnio versus having an NBD server or FUSE driver. > > > >You have already mentioned performance, but the design has changed so > >much that I think one of the two things has to change: either failover > >moves back to QEMU and there is no (closed source) translator running on > >the node, or the translator needs to speak a well-known and > >already-supported protocol. >=20 > IMO design has not changed. Implementation has changed significantly. I w= ould propose that we keep resiliency/failover code out of QEMU driver and i= mplement it entirely in libqnio as planned in a subsequent revision. The Vx= HS server does not need to understand/handle failover at all.=20 >=20 > Today libqnio gives us significantly better performance than any NBD/FUSE= implementation. We know because we have prototyped with both. Significant = improvements to libqnio are also in the pipeline which will use cross memor= y attach calls to further boost performance. Ofcourse a big reason for the = performance is also the HyperScale storage backend but we believe this meth= od of IO tapping/redirecting can be leveraged by other solutions as well. By "cross memory attach" do you mean process_vm_readv(2)/process_vm_writev(2)? That puts us back to square one in terms of security. You have (untrusted) QEMU + (untrusted) libqnio directly accessing the memory of another process on the same machine. That process is therefore also untrusted and may only process data for one guest so that guests stay isolated from each other. There's an easier way to get even better performance: get rid of libqnio and the external process. Move the code from the external process into QEMU to eliminate the process_vm_readv(2)/process_vm_writev(2) and context switching. Can you remind me why there needs to be an external process? Stefan --yLVHuoLXiP9kZBkt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJYNsrnAAoJEJykq7OBq3PIxtkH/i6TpK1Ze/JeP8Yg/xO2D10Y XvqcjZcL72F0G8JC3dK9Q9RFNc8yrPjQ9q1TJ4N+GqyBHeK+jdC6FfNR4Gw1y6sH 2gS6iqXgiIW2HqeaSkZ8Ra0cGrWgr2vqJgc8kY0qLTcq3pRu+9056g87OULNTLAm EGXNhMZRUSkyzLz6VW+Sy4ndOQuriKKReM/eUz++EEcwxpzKHAlUczOQ3xFOUzOO GYzsP85IS5RB4PCmMC3S7hJEMRNuYBYpltaA+f9QNQAOP514IjHLs+6jnBepM4wK IowDvEg5AfEZ46KoqG7l4AQYRC29Eyv9j4m/p9hT3/FID4hVVHtoCxDEkAzpUKI= =G3hy -----END PGP SIGNATURE----- --yLVHuoLXiP9kZBkt--