From: Juan Quintela <email@example.com> To: kvm-devel <firstname.lastname@example.org>, email@example.com Subject: KVM call minutes for 2019-06-18 Date: Tue, 18 Jun 2019 16:49:10 +0200 Message-ID: <firstname.lastname@example.org> (raw) Hi This are the random notes that I took about today community call. Please review and add anything that you consider relevant. Multiprocess qemu Overview - qemu (basically) runs as a single process - emulates several devices - the idea is to run the device emulations in a different process - QMP/HMP/... still on main process - rest of devices are going to be in external process - idea is to reduce priviledge for each process - questions? * how much work is going to be to integrate changes after this * most of the changes are new code with proxy objects * will not be changes to existing models * don't require all emulation run in remote process * device backends are run fully on the emulation process * leveraging virtio user model * expect DMA and IRQ like virtio user * QEMU assumes that several things have global state * migration/notifiers/... * QEMU is able to DMA from one device to other device directly, with multiprocess is difficult * How to get that global assumptions * patches already quite big and only do one device so far * Kevin is experimenthing with an external qemu-storage daemon * qemu-storage daemon vs process for each image * compromise: less isolation but easier to do * i.e. just doing the full subsystem instead of each device * multiprocess: * devices shouldn't have to be changed, it is the same code that inside qemu * TCG never claim any security * qemu: command line and device interface and QMP good solotion for QMP, but for the rest * libvirt/management app will launch the remote devices and just handle fd's to qemu * When we launch qemu qemu needs to know the "proxied" devices through the command line move everything to QMP and don't even pass the command line spcially don't pass the commandline from qemu to processes * Any quesntion about how the bus/device are presented? * why don't use only nemu + virtio? nemu and virtio don't handle legacy devices * cpu usage from multiprocess? how much cpu fro the same amount of IOPs: current implementation use around 9-10% more cpu cycles but there are optimizations that could reduce it further * multiprocess mmio create a kernel fd for each multiprocess and decide at device creation time if that range is going to be handled by the main qemu or another process. Something like vhost-user. This is an optimizaton, not implemented yet. * Why do they need legacy? Because they are not anly bringing new VM's, also legacy VM's (specially windows). * Is worth this for legacy? Or just enable it for new/modern guests. * How invasive is this? it is important to decide how much security/isolation it brings vs the amount of invasive things How much do we gain from using seccomp + unpriviledged qemu + .... * Discussion about if it makes sense the change Does it bring enough new isolation to qemu Thanks, Juan.
next reply index Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-06-18 14:49 Juan Quintela [this message] 2019-06-18 19:03 ` [Qemu-devel] " Kevin Wolf
Reply instructions: You may reply publically 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 \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ /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
KVM Archive on lore.kernel.org Archives are clonable: git clone --mirror https://lore.kernel.org/kvm/0 kvm/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 kvm kvm/ https://lore.kernel.org/kvm \ email@example.com firstname.lastname@example.org public-inbox-index kvm Newsgroup available over NNTP: nntp://nntp.lore.kernel.org/org.kernel.vger.kvm AGPL code for this site: git clone https://public-inbox.org/ public-inbox