]> rtime.felk.cvut.cz Git - jailhouse.git/commit
x86: Fold vmx/vtd_root_cell_shrink into vmx/vtd_cell_init
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 6 Jun 2014 14:19:39 +0000 (16:19 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Sat, 14 Jun 2014 17:09:20 +0000 (19:09 +0200)
commit67b62e90c0ff98e55769b4fd79bfbf1036037893
tree06f73048f14222718fe08bebe3bbc432faac585a
parent09a54ce6256bf787233805246849d0cd3d271b5a
x86: Fold vmx/vtd_root_cell_shrink into vmx/vtd_cell_init

This primarily fixes a regression of 46ab6c2f1e: Due to that reordering,
we were first adding devices to a new cell, then removing them from the
root cell which effectively disabled them in the context table.

Analyzing the content of vmx/vtd_root_cell_shrink, we are better off
folding them into the corresponding cell_init functions. We fix the
ordering issue while doing this.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/x86/control.c
hypervisor/arch/x86/include/asm/vmx.h
hypervisor/arch/x86/include/asm/vtd.h
hypervisor/arch/x86/vmx.c
hypervisor/arch/x86/vtd.c