search for: read_efer

Displaying 6 results from an estimated 6 matches for "read_efer".

2010 May 04
0
[PATCH] svm: support EFER.LMSLE for guests
...6 +853,29 @@ static int svm_cpu_up(struct cpuinfo_x86 /* Initialize core''s ASID handling. */ svm_asid_init(c); +#ifdef __x86_64__ + /* + * Check whether EFER.LMSLE can be written. + * Unfortunately there''s no feature bit defined for this. + */ + eax = read_efer(); + edx = read_efer() >> 32; + if ( wrmsr_safe(MSR_EFER, eax | EFER_LMSLE, edx) == 0 ) + rdmsr(MSR_EFER, eax, edx); + if ( eax & EFER_LMSLE ) + { + if ( c == &boot_cpu_data ) + cpu_has_lmsl = 1; + wrmsr(MSR_EFER, eax ^ EFER_LMSLE, edx); +...
2007 Aug 09
1
[PATCH] svm: allow guest to use EFER.FFXSE and EFER.LMSLE
...44,6 +1052,21 @@ int start_svm(struct cpuinfo_x86 *c) /* Initialize core''s ASID handling. */ svm_asid_init(c); +#ifdef __x86_64__ + /* + * Check whether EFER.LMSLE can be written. + * Unfortunately there''s no feature bit defined for this. + */ + eax = read_efer(); + edx = read_efer() >> 32; + if ( wrmsr_safe(MSR_EFER, eax | EFER_LMSLE, edx) == 0 ) + rdmsr(MSR_EFER, eax, edx); + if ( !(eax & EFER_LMSLE) ) + cpu_has_lmsl = 0; + else + wrmsr(MSR_EFER, eax ^ EFER_LMSLE, edx); +#endif + if ( cpu != 0 ) r...
2012 Apr 02
6
[PATCH 0 of 3] Patches for Xen 4.2 (v2).
Patches that were posted last week - with review comments addressed.
2007 Aug 08
2
[PATCH] x86-64: syscall/sysenter support for 32-bit apps
...allback_cs = reg->address.cs; + v->arch.syscall32_callback_eip = reg->address.eip; + v->arch.syscall32_disables_events = + (reg->flags & CALLBACKF_mask_events) != 0; + if ( v->arch.syscall32_callback_cs & ~3 ) + write_efer(read_efer() | EFER_SCE); + else + write_efer(read_efer() & ~EFER_SCE); + break; + + case CALLBACKTYPE_sysenter: + v->arch.sysenter_callback_cs = reg->address.cs; + v->arch.sysenter_callback_eip = reg->address.eip; + v->arch.sysenter_...
2013 Oct 10
10
[PATCH 0/4] x86: XSA-67 follow-up
1: correct LDT checks 2: add address validity check to guest_map_l1e() 3: use {rd,wr}{fs,gs}base when available 4: check for canonical address before doing page walks Signed-off-by: Jan Beulich <jbeulich@suse.com>
2013 Sep 23
57
[PATCH RFC v13 00/20] Introduce PVH domU support
This patch series is a reworking of a series developed by Mukesh Rathor at Oracle. The entirety of the design and development was done by him; I have only reworked, reorganized, and simplified things in a way that I think makes more sense. The vast majority of the credit for this effort therefore goes to him. This version is labelled v13 because it is based on his most recent series, v11.