Does the QEMU Architectural View Accurately Represent QEMU/KVM Relationships?

  • Thread starter Thread starter cianfa72
  • Start date Start date
AI Thread Summary
The discussion centers on the architectural representation of QEMU, particularly in relation to its operation with and without KVM (Kernel-based Virtual Machine) acceleration. The original poster questions the accuracy of a diagram that depicts QEMU's architecture, arguing that it only accurately represents QEMU without KVM, as it relies on TCG (Tiny Code Generator) for dynamic translation. With KVM, QEMU utilizes hardware virtualization features like Intel VT-x, which introduces distinct user and kernel modes for guest systems, complicating the diagram's representation. The response suggests that while the diagram may be confusing, it can be disregarded if it does not aid understanding, highlighting the complexity of the relationships involved in virtualization that may not be fully captured in visual formats.
cianfa72
Messages
2,823
Reaction score
298
TL;DR Summary
About the QEMU/KVM virtualization architectural view
Hi,

I've a doubt about the QEMU architectural view as depicted in the following (and similar) pictures -- e.g. https://www.redhat.com/en/blog/introduction-virtio-networking-and-vhost-net.

2019-09-10-virtio-intro-fig1.jpg


To me this view makes sense for 'plane QEMU' only since it has not any homework acceleration (i.e. KVM). In fact, without any homework acceleration, QEMU employs TCG dynamic translation even if the emulated CPU (vCPU) is the same as the host physical CPU.

On the other hand QEMU/KVM leverages on CPU virtualization support (e.g. Intel VT-x) that provide root and non-root (guest) modes (e.g. VMX root vs VMX non-root mode). In that case CPU guest mode (VMX non-root) has got its own User and Kernel mode (Ring 3 vs Ring 0) so I believe that picture actually does not make sense -- since the Guest is not inside the the Host User mode.

What do you think about ?

p.s. same question is posted on other forum.
 
Technology news on Phys.org
Any feedback about it ?
 
These are complicated relationships which cannot be completely expressed in a diagram, even with pretty colours.

I think the diagram is fine, but if it is confusing you then just ignore it.
 
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
I am trying to run an .ipynb file and have installed Miniconda as well as created an environment as such -conda create -n <env_name> python=3.7 ipykernel jupyter I am assuming this is successful as I can activate this environment via the anaconda prompt and following command -conda activate <env_name> Then I downloaded and installed VS code and I am trying to edit an .ipynb file. I want to select a kernel, via VS Code but when I press the button on the upper right corner I am greeted...
Back
Top