<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=KVM%3A_Beda_KVM_dengan_QEMU</id>
	<title>KVM: Beda KVM dengan QEMU - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=KVM%3A_Beda_KVM_dengan_QEMU"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=KVM:_Beda_KVM_dengan_QEMU&amp;action=history"/>
	<updated>2026-05-04T08:37:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=KVM:_Beda_KVM_dengan_QEMU&amp;diff=68568&amp;oldid=prev</id>
		<title>Onnowpurbo: /* KVM */</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=KVM:_Beda_KVM_dengan_QEMU&amp;diff=68568&amp;oldid=prev"/>
		<updated>2023-04-27T02:35:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;KVM&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:35, 27 April 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot; &gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==KVM==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==KVM==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;KVM &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is a couple of things&lt;/del&gt;: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;first it is a Linux &lt;/del&gt;kernel &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;module—now included in mainline—that switches the processor into a new &lt;/del&gt;'guest' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;state&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The &lt;/del&gt;guest &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;state has its own set of &lt;/del&gt;ring &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;states&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;but privileged &lt;/del&gt;ring0 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;instructions fall back to the &lt;/del&gt;hypervisor &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Since it is a new processor &lt;/del&gt;mode &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;of execution&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the code doesn't have to be modified in any way&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;KVM &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ada beberapa hal&lt;/ins&gt;: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pertama adalah modul &lt;/ins&gt;kernel &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Linux—sekarang termasuk dalam mainline—yang mengalihkan prosesor ke status &lt;/ins&gt;'guest' &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;baru&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Status &lt;/ins&gt;guest &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;memiliki rangkaian status &lt;/ins&gt;ring &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sendiri&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;tetapi instruksi &lt;/ins&gt;ring0 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;yang diistimewakan kembali ke kode &lt;/ins&gt;hypervisor. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Karena ini adalah &lt;/ins&gt;mode &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;eksekusi prosesor baru&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;kode tidak perlu dimodifikasi dengan cara apa pun&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Apart from the processor state switching&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/del&gt;kernel &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;module also handles a few low-level parts of the emulation like the &lt;/del&gt;MMU &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;registers &lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;used to handle &lt;/del&gt;VM) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and some parts of the &lt;/del&gt;PCI &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;emulated hardware&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Terlepas dari peralihan status prosesor&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;modul &lt;/ins&gt;kernel &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;juga menangani beberapa bagian tingkat rendah dari emulasi seperti register &lt;/ins&gt;MMU (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;digunakan untuk menangani &lt;/ins&gt;VM) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dan beberapa bagian perangkat keras yang diemulasi &lt;/ins&gt;PCI.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Second&lt;/del&gt;, KVM &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is a &lt;/del&gt;fork &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;of the &lt;/del&gt;Qemu &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;executable&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Both teams work actively to keep differences at a minimum&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and there are advances in reducing it&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Eventually&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the goal is that &lt;/del&gt;Qemu &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;should work anywhere&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and if a &lt;/del&gt;KVM &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;kernel module is available&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;it could be automatically used&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;But for the foreseeable future&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/del&gt;Qemu &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;team focuses on hardware emulation and portability&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;while &lt;/del&gt;KVM &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;folks focus on the &lt;/del&gt;kernel &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;module &lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sometimes moving small parts of the emulation there, if it improves performance), and interfacing with the rest of the userspace code.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Kedua&lt;/ins&gt;, KVM &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;adalah &lt;/ins&gt;fork &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dari eksekusi &lt;/ins&gt;Qemu. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Kedua tim bekerja secara aktif untuk meminimalkan perbedaan&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dan ada kemajuan dalam menguranginya&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Pada akhirnya&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;tujuannya adalah agar &lt;/ins&gt;Qemu &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dapat bekerja di mana saja&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dan jika modul kernel &lt;/ins&gt;KVM &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;tersedia&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;modul tersebut dapat digunakan secara otomatis&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Tetapi untuk masa mendatang&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;tim &lt;/ins&gt;Qemu &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;berfokus pada emulasi dan portabilitas perangkat keras&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sementara orang-orang &lt;/ins&gt;KVM &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;fokus pada modul &lt;/ins&gt;kernel (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;terkadang memindahkan sebagian kecil emulasi ke sana&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;jika itu meningkatkan kinerja&lt;/ins&gt;), &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dan berinteraksi dengan kode ruang pengguna lainnya&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The kvm-qemu executable works like normal Qemu: allocates RAM, loads the code, and instead of recompiling it, or calling KQemu&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;it spawns a thread (this is important&lt;/del&gt;)&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;. The thread calls the KVM kernel module to switch to guest mode and proceeds to execute the VM code. On a privileged instruction, it switches back to the KVM kernel module, which, if necessary, signals the Qemu thread to handle most of the hardware emulation.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;One of the nice things of this architecture is that the guest code is emulated in a posix thread which you can manage with normal Linux tools. If you want a VM with 2 or 4 cores, kvm-qemu creates 2 or 4 threads, each of them calls the KVM kernel module to start executing. The concurrency—if you have enough real cores—or scheduling—if not—is managed by the normal Linux scheduler&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;keeping code small and surprises limited&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Eksekusi kvm-qemu berfungsi seperti Qemu normal: mengalokasikan RAM, memuat kode, dan alih-alih mengkompilasi ulang, atau memanggil KQemu, itu memunculkan utas (ini penting). Utas memanggil modul kernel KVM untuk beralih ke mode tamu dan mulai mengeksekusi kode VM. Pada instruksi istimewa, ia beralih kembali ke modul kernel KVM, yang, jika perlu, memberi sinyal pada utas Qemu untuk menangani sebagian besar emulasi perangkat keras.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Salah satu hal yang menyenangkan dari arsitektur ini adalah kode guest diemulasi dalam posix thread yang dapat Anda kelola dengan tool Linux biasa. Jika Anda menginginkan VM dengan 2 atau 4 core, kvm-qemu membuat 2 atau 4 thread, masing-masing memanggil modul kernel KVM untuk mulai mengeksekusi. Konkurensi—jika Anda memiliki cukup real core -or scheduling—if not—dikelola oleh scheduler Linux biasa, menjaga agar kode tetap kecil dan surprise terbatas.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Referensi==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Referensi==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* http://serverfault.com/questions/208693/difference-between-kvm-and-qemu&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* http://serverfault.com/questions/208693/difference-between-kvm-and-qemu&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=KVM:_Beda_KVM_dengan_QEMU&amp;diff=42478&amp;oldid=prev</id>
		<title>Onnowpurbo: /* KQemu */</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=KVM:_Beda_KVM_dengan_QEMU&amp;diff=42478&amp;oldid=prev"/>
		<updated>2015-02-14T23:50:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;KQemu&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:50, 14 February 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot; &gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dalam kasus tertentu di mana kedua sumber dan target adalah arsitektur yang sama (seperti x86 pada x86), dia masih harus mengurai kode untuk menghapus 'previliged instructions' dan menggantinya dengan context switch. Untuk membuatnya seefisien mungkin pada x86 Linux, ada modul kernel yang disebut KQemu yang menangani ini.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dalam kasus tertentu di mana kedua sumber dan target adalah arsitektur yang sama (seperti x86 pada x86), dia masih harus mengurai kode untuk menghapus 'previliged instructions' dan menggantinya dengan context switch. Untuk membuatnya seefisien mungkin pada x86 Linux, ada modul kernel yang disebut KQemu yang menangani ini.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Karena berbentuk modul kernel, KQemu mampu mengeksekusi sebagian besar code tanpa perubahan, menggantikan hanya tingkat yang paling rendah ring0-only instructions. Dalam hal ini, userspace Qemu  masih mengalokasikan semua RAM untuk mesin ditiru, dan me-load code. Perbedaannya adalah bahwa daripada mengkompilasi ulang code, KQemu dipanggil untuk memindai / patch / eksekusi. Semua emulasi hardware &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;perifer &lt;/del&gt;dilakukan di Qemu.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Karena berbentuk modul kernel, KQemu mampu mengeksekusi sebagian besar code tanpa perubahan, menggantikan hanya tingkat yang paling rendah ring0-only instructions. Dalam hal ini, userspace Qemu  masih mengalokasikan semua RAM untuk mesin ditiru, dan me-load code. Perbedaannya adalah bahwa daripada mengkompilasi ulang code, KQemu dipanggil untuk memindai / patch / eksekusi. Semua emulasi hardware &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;periferal &lt;/ins&gt;dilakukan di Qemu.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Ini jauh lebih cepat dari Qemu biasa karena sebagian besar code tidak berubah, tetapi masih harus mengubah ring0 code (sebagian besar code ini ada dalam kernel VM), sehingga kinerja masih tidak terlalu baik.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Ini jauh lebih cepat dari Qemu biasa karena sebagian besar code tidak berubah, tetapi masih harus mengubah ring0 code (sebagian besar code ini ada dalam kernel VM), sehingga kinerja masih tidak terlalu baik.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=KVM:_Beda_KVM_dengan_QEMU&amp;diff=42477&amp;oldid=prev</id>
		<title>Onnowpurbo at 23:13, 14 February 2015</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=KVM:_Beda_KVM_dengan_QEMU&amp;diff=42477&amp;oldid=prev"/>
		<updated>2015-02-14T23:13:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:13, 14 February 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Qemu&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;==&lt;/ins&gt;Qemu&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;QEmu &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is a complete and standalone software of its own&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;You use it to emulate machines&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;it is very flexible and portable&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mainly it works by a special &lt;/del&gt;'recompiler' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;that transforms binary code written for a given &lt;/del&gt;processor &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;into another one &lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;say&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to run &lt;/del&gt;MIPS &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code on a &lt;/del&gt;PPC &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;mac&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;or &lt;/del&gt;ARM &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;in an &lt;/del&gt;x86 PC).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;QEmu &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;adalah perangkat lunak lengkap dan mandiri&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Kita menggunakannya untuk meniru mesin&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dia sangat fleksibel dan portabel&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Terutama bekerja dengan &lt;/ins&gt;'recompiler' &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;khusus yang mengubah kode biner yang ditulis untuk prosesor diberikan ke &lt;/ins&gt;processor &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;lainnya &lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;misalnya&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;kode &lt;/ins&gt;MIPS &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;untuk berjalan pada mac &lt;/ins&gt;PPC, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;atau &lt;/ins&gt;ARM &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dalam &lt;/ins&gt;x86 PC).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;To emulate more than just the processor&lt;/del&gt;, Qemu &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;includes a long list of peripheral emulators&lt;/del&gt;: disk, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;network&lt;/del&gt;, VGA, PCI, USB, serial/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;parallel ports&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;etc&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Untuk meniru lebih dari sekedar prosesor&lt;/ins&gt;, Qemu &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;termasuk daftar panjang emulator periferal&lt;/ins&gt;: disk, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;jaringan&lt;/ins&gt;, VGA, PCI, USB, serial / &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;port paralel&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dll&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;KQemu&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;==&lt;/ins&gt;KQemu&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;In the specific case where both source and &lt;/del&gt;target &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;are the same architecture &lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;like the common case of &lt;/del&gt;x86 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;on &lt;/del&gt;x86), &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;it still has to parse the code to remove any &lt;/del&gt;'&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;privileged &lt;/del&gt;instructions' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and replace them with &lt;/del&gt;context &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;switches&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;To make it as efficient as possible on &lt;/del&gt;x86 Linux, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;there's a &lt;/del&gt;kernel &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;module called &lt;/del&gt;KQemu &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;that handles this&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Dalam kasus tertentu di mana kedua sumber dan &lt;/ins&gt;target &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;adalah arsitektur yang sama &lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;seperti &lt;/ins&gt;x86 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pada &lt;/ins&gt;x86), &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dia masih harus mengurai kode untuk menghapus &lt;/ins&gt;'&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;previliged &lt;/ins&gt;instructions' &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dan menggantinya dengan &lt;/ins&gt;context &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;switch&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Untuk membuatnya seefisien mungkin pada &lt;/ins&gt;x86 Linux, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ada modul &lt;/ins&gt;kernel &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;yang disebut &lt;/ins&gt;KQemu &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;yang menangani ini&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Being a &lt;/del&gt;kernel &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;module&lt;/del&gt;, KQemu &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is able to execute most &lt;/del&gt;code &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;unchanged&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;replacing only the lowest-level &lt;/del&gt;ring0-only instructions. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;In that case&lt;/del&gt;, userspace Qemu &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;still allocates all the &lt;/del&gt;RAM &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;for the emulated machine&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and loads the &lt;/del&gt;code. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The difference is that instead of recompiling the &lt;/del&gt;code, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;it calls &lt;/del&gt;KQemu &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to scan&lt;/del&gt;/patch/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;execute it&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;All the peripheral &lt;/del&gt;hardware &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;emulation is done in &lt;/del&gt;Qemu.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Karena berbentuk modul &lt;/ins&gt;kernel, KQemu &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;mampu mengeksekusi sebagian besar &lt;/ins&gt;code &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;tanpa perubahan&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;menggantikan hanya tingkat yang paling rendah &lt;/ins&gt;ring0-only instructions. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Dalam hal ini&lt;/ins&gt;, userspace Qemu &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; masih mengalokasikan semua &lt;/ins&gt;RAM &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;untuk mesin ditiru&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dan me-load &lt;/ins&gt;code. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Perbedaannya adalah bahwa daripada mengkompilasi ulang &lt;/ins&gt;code, KQemu &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dipanggil untuk memindai &lt;/ins&gt;/ patch / &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;eksekusi&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Semua emulasi &lt;/ins&gt;hardware &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;perifer dilakukan di &lt;/ins&gt;Qemu.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;This is a lot faster than plain &lt;/del&gt;Qemu &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;because most &lt;/del&gt;code &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is unchanged&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;but still has to transform &lt;/del&gt;ring0 code (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;most of the &lt;/del&gt;code &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;in the &lt;/del&gt;VM&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'s kernel&lt;/del&gt;), &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;so performance still suffers&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Ini jauh lebih cepat dari &lt;/ins&gt;Qemu &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;biasa karena sebagian besar &lt;/ins&gt;code &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;tidak berubah&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;tetapi masih harus mengubah &lt;/ins&gt;ring0 code (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sebagian besar &lt;/ins&gt;code &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ini ada dalam kernel &lt;/ins&gt;VM), &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sehingga kinerja masih tidak terlalu baik&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;KVM&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;==&lt;/ins&gt;KVM&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;KVM is a couple of things: first it is a Linux kernel module—now included in mainline—that switches the processor into a new 'guest' state. The guest state has its own set of ring states, but privileged ring0 instructions fall back to the hypervisor code. Since it is a new processor mode of execution, the code doesn't have to be modified in any way.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;KVM is a couple of things: first it is a Linux kernel module—now included in mainline—that switches the processor into a new 'guest' state. The guest state has its own set of ring states, but privileged ring0 instructions fall back to the hypervisor code. Since it is a new processor mode of execution, the code doesn't have to be modified in any way.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=KVM:_Beda_KVM_dengan_QEMU&amp;diff=42434&amp;oldid=prev</id>
		<title>Onnowpurbo at 00:03, 8 February 2015</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=KVM:_Beda_KVM_dengan_QEMU&amp;diff=42434&amp;oldid=prev"/>
		<updated>2015-02-08T00:03:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:03, 8 February 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Qemu:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Qemu:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=KVM:_Beda_KVM_dengan_QEMU&amp;diff=42362&amp;oldid=prev</id>
		<title>Onnowpurbo: New page:  Qemu:  QEmu is a complete and standalone software of its own. You use it to emulate machines, it is very flexible and portable. Mainly it works by a special 'recompiler' that transforms b...</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=KVM:_Beda_KVM_dengan_QEMU&amp;diff=42362&amp;oldid=prev"/>
		<updated>2015-02-04T09:34:32Z</updated>

		<summary type="html">&lt;p&gt;New page:  Qemu:  QEmu is a complete and standalone software of its own. You use it to emulate machines, it is very flexible and portable. Mainly it works by a special &amp;#039;recompiler&amp;#039; that transforms b...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
Qemu:&lt;br /&gt;
&lt;br /&gt;
QEmu is a complete and standalone software of its own. You use it to emulate machines, it is very flexible and portable. Mainly it works by a special 'recompiler' that transforms binary code written for a given processor into another one (say, to run MIPS code on a PPC mac, or ARM in an x86 PC).&lt;br /&gt;
&lt;br /&gt;
To emulate more than just the processor, Qemu includes a long list of peripheral emulators: disk, network, VGA, PCI, USB, serial/parallel ports, etc.&lt;br /&gt;
&lt;br /&gt;
KQemu:&lt;br /&gt;
&lt;br /&gt;
In the specific case where both source and target are the same architecture (like the common case of x86 on x86), it still has to parse the code to remove any 'privileged instructions' and replace them with context switches. To make it as efficient as possible on x86 Linux, there's a kernel module called KQemu that handles this.&lt;br /&gt;
&lt;br /&gt;
Being a kernel module, KQemu is able to execute most code unchanged, replacing only the lowest-level ring0-only instructions. In that case, userspace Qemu still allocates all the RAM for the emulated machine, and loads the code. The difference is that instead of recompiling the code, it calls KQemu to scan/patch/execute it. All the peripheral hardware emulation is done in Qemu.&lt;br /&gt;
&lt;br /&gt;
This is a lot faster than plain Qemu because most code is unchanged, but still has to transform ring0 code (most of the code in the VM's kernel), so performance still suffers.&lt;br /&gt;
&lt;br /&gt;
KVM:&lt;br /&gt;
&lt;br /&gt;
KVM is a couple of things: first it is a Linux kernel module—now included in mainline—that switches the processor into a new 'guest' state. The guest state has its own set of ring states, but privileged ring0 instructions fall back to the hypervisor code. Since it is a new processor mode of execution, the code doesn't have to be modified in any way.&lt;br /&gt;
&lt;br /&gt;
Apart from the processor state switching, the kernel module also handles a few low-level parts of the emulation like the MMU registers (used to handle VM) and some parts of the PCI emulated hardware.&lt;br /&gt;
&lt;br /&gt;
Second, KVM is a fork of the Qemu executable. Both teams work actively to keep differences at a minimum, and there are advances in reducing it. Eventually, the goal is that Qemu should work anywhere, and if a KVM kernel module is available, it could be automatically used. But for the foreseeable future, the Qemu team focuses on hardware emulation and portability, while KVM folks focus on the kernel module (sometimes moving small parts of the emulation there, if it improves performance), and interfacing with the rest of the userspace code.&lt;br /&gt;
&lt;br /&gt;
The kvm-qemu executable works like normal Qemu: allocates RAM, loads the code, and instead of recompiling it, or calling KQemu, it spawns a thread (this is important). The thread calls the KVM kernel module to switch to guest mode and proceeds to execute the VM code. On a privileged instruction, it switches back to the KVM kernel module, which, if necessary, signals the Qemu thread to handle most of the hardware emulation.&lt;br /&gt;
&lt;br /&gt;
One of the nice things of this architecture is that the guest code is emulated in a posix thread which you can manage with normal Linux tools. If you want a VM with 2 or 4 cores, kvm-qemu creates 2 or 4 threads, each of them calls the KVM kernel module to start executing. The concurrency—if you have enough real cores—or scheduling—if not—is managed by the normal Linux scheduler, keeping code small and surprises limited.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://serverfault.com/questions/208693/difference-between-kvm-and-qemu&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>