x86.h (4d5422cea3b61f158d58924cbb43feada456ba5c) | x86.h (caa057a2cad647fb368a12c8e6c410ac4c28e063) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef ARCH_X86_KVM_X86_H 3#define ARCH_X86_KVM_X86_H 4 5#include <linux/kvm_host.h> 6#include <asm/pvclock.h> 7#include "kvm_cache_regs.h" 8 --- 251 unchanged lines hidden (view full) --- 260 u32 __quot, __rem; \ 261 asm("divl %2" : "=a" (__quot), "=d" (__rem) \ 262 : "rm" (base), "0" (0), "1" ((u32) n)); \ 263 n = __quot; \ 264 __rem; \ 265 }) 266 267#define KVM_X86_DISABLE_EXITS_MWAIT (1 << 0) | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef ARCH_X86_KVM_X86_H 3#define ARCH_X86_KVM_X86_H 4 5#include <linux/kvm_host.h> 6#include <asm/pvclock.h> 7#include "kvm_cache_regs.h" 8 --- 251 unchanged lines hidden (view full) --- 260 u32 __quot, __rem; \ 261 asm("divl %2" : "=a" (__quot), "=d" (__rem) \ 262 : "rm" (base), "0" (0), "1" ((u32) n)); \ 263 n = __quot; \ 264 __rem; \ 265 }) 266 267#define KVM_X86_DISABLE_EXITS_MWAIT (1 << 0) |
268#define KVM_X86_DISABLE_VALID_EXITS (KVM_X86_DISABLE_EXITS_MWAIT) | 268#define KVM_X86_DISABLE_EXITS_HTL (1 << 1) 269#define KVM_X86_DISABLE_VALID_EXITS (KVM_X86_DISABLE_EXITS_MWAIT | \ 270 KVM_X86_DISABLE_EXITS_HTL) |
269 270static inline bool kvm_mwait_in_guest(struct kvm *kvm) 271{ 272 return kvm->arch.mwait_in_guest; 273} 274 | 271 272static inline bool kvm_mwait_in_guest(struct kvm *kvm) 273{ 274 return kvm->arch.mwait_in_guest; 275} 276 |
277static inline bool kvm_hlt_in_guest(struct kvm *kvm) 278{ 279 return kvm->arch.hlt_in_guest; 280} 281 |
|
275#endif | 282#endif |