Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1323263 > unrolled thread
| Started by | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| First post | 2016-02-01 16:50 +0100 |
| Last post | 2016-02-01 16:50 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 03/11] xen/hvmlite: Initialize HVMlite kernel Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-02-01 16:50 +0100
| From | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| Date | 2016-02-01 16:50 +0100 |
| Subject | [PATCH v2 03/11] xen/hvmlite: Initialize HVMlite kernel |
| Message-ID | <qXoTP-4WL-61@gated-at.bofh.it> |
HVMlite guests need to make a few additional initialization calls
compared to regular HVM guests.
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
---
arch/x86/xen/enlighten.c | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 5f05fa2..1409de6 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1863,15 +1863,21 @@ static void __init init_hvm_pv_info(void)
minor = eax & 0xffff;
printk(KERN_INFO "Xen version %d.%d.\n", major, minor);
- cpuid(base + 2, &pages, &msr, &ecx, &edx);
-
- pfn = __pa(hypercall_page);
- wrmsr_safe(msr, (u32)pfn, (u32)(pfn >> 32));
+ /* HVMlite set up hypercall page earlier in xen_prepare_hvmlite() */
+ if (xen_hvmlite) {
+ pv_info.name = "Xen HVMlite";
+ pv_info.paravirt_enabled = 1;
+ xen_init_apic();
+ machine_ops = xen_machine_ops;
+ } else {
+ pv_info.name = "Xen HVM";
+ cpuid(base + 2, &pages, &msr, &ecx, &edx);
+ pfn = __pa(hypercall_page);
+ wrmsr_safe(msr, (u32)pfn, (u32)(pfn >> 32));
+ }
xen_setup_features();
- pv_info.name = "Xen HVM";
-
xen_domain_type = XEN_HVM_DOMAIN;
}
--
1.7.1
Back to top | Article view | linux.kernel
csiph-web