Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c55d6d9 authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Paolo Bonzini
Browse files

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: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent c205fb7d
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -964,16 +964,6 @@ static inline bool cpu_has_vmx_ept_execute_only(void)
	return vmx_capability.ept & VMX_EPT_EXECUTE_ONLY_BIT;
}

static inline bool cpu_has_vmx_eptp_uncacheable(void)
{
	return vmx_capability.ept & VMX_EPTP_UC_BIT;
}

static inline bool cpu_has_vmx_eptp_writeback(void)
{
	return vmx_capability.ept & VMX_EPTP_WB_BIT;
}

static inline bool cpu_has_vmx_ept_2m_page(void)
{
	return vmx_capability.ept & VMX_EPT_2MB_PAGE_BIT;