diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2015-01-11 13:02:26 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-01-19 05:09:36 -0500 |
commit | 0c55d6d931484a747dbba5c9766379c7720a8520 (patch) | |
tree | aec4584249bd574aa448b574ae0d1db03886d4f3 /arch/x86/kvm/vmx.c | |
parent | c205fb7d7d4f81e46fc577b707ceb9e356af1456 (diff) |
x86: kvm: vmx: Remove some unused functions
Removes some functions that are not used anywhere:
cpu_has_vmx_eptp_writeback() cpu_has_vmx_eptp_uncacheable()
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index ce350718eb88..c987374d92c1 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -964,16 +964,6 @@ static inline bool cpu_has_vmx_ept_execute_only(void) | |||
964 | return vmx_capability.ept & VMX_EPT_EXECUTE_ONLY_BIT; | 964 | return vmx_capability.ept & VMX_EPT_EXECUTE_ONLY_BIT; |
965 | } | 965 | } |
966 | 966 | ||
967 | static inline bool cpu_has_vmx_eptp_uncacheable(void) | ||
968 | { | ||
969 | return vmx_capability.ept & VMX_EPTP_UC_BIT; | ||
970 | } | ||
971 | |||
972 | static inline bool cpu_has_vmx_eptp_writeback(void) | ||
973 | { | ||
974 | return vmx_capability.ept & VMX_EPTP_WB_BIT; | ||
975 | } | ||
976 | |||
977 | static inline bool cpu_has_vmx_ept_2m_page(void) | 967 | static inline bool cpu_has_vmx_ept_2m_page(void) |
978 | { | 968 | { |
979 | return vmx_capability.ept & VMX_EPT_2MB_PAGE_BIT; | 969 | return vmx_capability.ept & VMX_EPT_2MB_PAGE_BIT; |