All of lore.kernel.org
 help / color / mirror / Atom feed
* Grant operation batching
@ 2022-05-19 23:22 Demi Marie Obenour
  2022-05-20  6:24 ` Jan Beulich
  0 siblings, 1 reply; 4+ messages in thread
From: Demi Marie Obenour @ 2022-05-19 23:22 UTC (permalink / raw)
  To: Xen developer discussion

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

It is well known that mapping and unmapping grants is expensive, which
is why blkback has persistent grants.  Could this cost be mitigated by
batching, and if it was, would it affect the tradeoff of memcpy() vs
grant table operations?

Alternatively, would there be any interest in an “unsafe” mode for
blkback that skips both the copy and the grant operations?  This is
obviously unsafe (hence the name!), but in many cases that unsafety does
not actually matter.  For instance, a Qubes dom0 can execute any shell
command it wants in any Qubes VM via qvm-run.  Much easier than trying
to exploit some UaF or race condition 🙂.  More generally, when the
backend is the all-powerful dom0, trying to defend against a malicious
backend is (at least in the absence of SEV-SNP or TDX) pointless, so one
might as well not bother and take the free performance.
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-20 12:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-19 23:22 Grant operation batching Demi Marie Obenour
2022-05-20  6:24 ` Jan Beulich
2022-05-20 12:37   ` Demi Marie Obenour
2022-05-20 12:44     ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.