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"`
}
HostDomCapabilities represents structure for parsing output of virsh capabilities
type HostFeature ¶ added in v0.40.0
type Mode ¶
type Mode struct { Vendor Vendor `xml:"vendor"` Feature []HostFeature `xml:"feature"` Model []Model `xml:"model"` }
Mode represents slice of cpu models
type NodeLabeller ¶
type NodeLabeller struct {
// contains filtered or unexported fields
}
NodeLabeller struct holds informations needed to run node-labeller
func NewNodeLabeller ¶
func NewNodeLabeller(clusterConfig *virtconfig.ClusterConfig, clientset kubecli.KubevirtClient, host, namespace string) (*NodeLabeller, error)
func (*NodeLabeller) Run ¶
func (n *NodeLabeller) Run(threadiness int, stop chan struct{})
Run runs node-labeller
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.