Documentation ¶
Index ¶
Constants ¶
View Source
const ( HV_X64_MSR_RESET = 0x40000003 HV_X64_MSR_VP_INDEX = 0x40000002 HV_X64_MSR_VP_RUNTIME = 0x40000010 HV_X64_MSR_SCONTROL = 0x40000080 HV_X64_MSR_STIMER0_CONFIG = 0x400000B0 HV_X64_MSR_TSC_FREQUENCY = 0x40000022 HV_X64_MSR_REENLIGHTENMENT_CONTROL = 0x40000106 )
Variables ¶
View Source
var CapsDesc = []capability{ { Extension: uintptr(C.CapHyperv), Name: "base", }, { Extension: uintptr(C.CapHypervTime), Name: "time", }, { Extension: uintptr(C.CapHypervVpIndex), MSR: HV_X64_MSR_VP_INDEX, Name: "vpindex", }, { Extension: uintptr(C.CapHypervTlbflush), Name: "tlbflush", }, { Extension: uintptr(C.CapHypervSendIPI), Name: "ipi", }, { Extension: uintptr(C.CapHypervSynic), MSR: HV_X64_MSR_SCONTROL, Name: "synic", }, { Extension: uintptr(C.CapHypervSynic2), MSR: HV_X64_MSR_SCONTROL, Name: "synic2", }, { MSR: HV_X64_MSR_TSC_FREQUENCY, Name: "frequencies", }, { MSR: HV_X64_MSR_RESET, Name: "reset", }, { MSR: HV_X64_MSR_VP_RUNTIME, Name: "runtime", }, { MSR: HV_X64_MSR_STIMER0_CONFIG, Name: "synictimer", }, { MSR: HV_X64_MSR_REENLIGHTENMENT_CONTROL, Name: "reenlightenment", }, }
Functions ¶
This section is empty.
Types ¶
type FeatureModel ¶
type FeatureModel struct {
Model Features `xml:"model"`
}
Structures needed to parse cpu features
type HostDomCapabilities ¶
type HostDomCapabilities struct { CPU CPU `xml:"cpu"` SEV SEVConfiguration `xml:"features>sev"` }
HostDomCapabilities represents structure for parsing output of virsh capabilities
type HostFeature ¶ added in v0.40.0
type KSMConfiguration ¶ added in v1.0.0
type Mode ¶
type Mode struct { Name string `xml:"name,attr"` Supported string `xml:"supported,attr"` Vendor Vendor `xml:"vendor"` Feature []HostFeature `xml:"feature"` Model []Model `xml:"model"` }
Mode represents slice of cpu models
type Model ¶
type Model struct { Name string `xml:",chardata"` Usable string `xml:"usable,attr"` Fallback string `xml:"fallback,attr"` }
Model represents cpu model
type NodeLabeller ¶
type NodeLabeller struct { SEV SEVConfiguration KSM KSMConfiguration // contains filtered or unexported fields }
NodeLabeller struct holds information needed to run node-labeller
func NewNodeLabeller ¶
func NewNodeLabeller(clusterConfig *virtconfig.ClusterConfig, clientset kubecli.KubevirtClient, host, namespace string, recorder record.EventRecorder) (*NodeLabeller, error)
func (*NodeLabeller) GetHostCpuModel ¶ added in v0.54.0
func (n *NodeLabeller) GetHostCpuModel() hostCPUModel
func (*NodeLabeller) HostCapabilities ¶ added in v0.43.0
func (n *NodeLabeller) HostCapabilities() *api.Capabilities
func (*NodeLabeller) Run ¶
func (n *NodeLabeller) Run(threadiness int, stop chan struct{})
Run runs node-labeller
type SEVConfiguration ¶ added in v0.49.0
type SupportedHostFeature ¶ added in v0.40.0
type SupportedHostFeature struct {
Feature []HostFeature `xml:"feature"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.