Documentation ¶
Index ¶
- Constants
- Variables
- type ARM
- func (*ARM) GenerateCdromDesc(osName string, cdrom *desc.SGuestCdrom)
- func (*ARM) GenerateCpuDesc(cpus uint, s KVMGuestInstance) (*desc.SGuestCpu, error)
- func (*ARM) GenerateFloppyDesc(osName string, floppy *desc.SGuestFloppy)
- func (*ARM) GenerateIsaSerialDesc() *desc.SGuestIsaSerial
- func (*ARM) GenerateMachineDesc(accel string) *desc.SGuestMachine
- func (*ARM) GenerateMemDesc() *desc.SGuestMem
- func (*ARM) GeneratePvpanicDesc() *desc.SGuestPvpanic
- func (*ARM) GenerateQgaDesc(qgaPath string) *desc.SGuestQga
- type Arch
- type KVMGuestInstance
- type X86
- func (*X86) GenerateCdromDesc(osName string, cdrom *desc.SGuestCdrom)
- func (x86 *X86) GenerateCpuDesc(cpus uint, s KVMGuestInstance) (*desc.SGuestCpu, error)
- func (*X86) GenerateFloppyDesc(osName string, floppy *desc.SGuestFloppy)
- func (*X86) GenerateIsaSerialDesc() *desc.SGuestIsaSerial
- func (*X86) GenerateMachineDesc(accel string) *desc.SGuestMachine
- func (*X86) GenerateMemDesc() *desc.SGuestMem
- func (*X86) GeneratePvpanicDesc() *desc.SGuestPvpanic
- func (*X86) GenerateQgaDesc(qgaPath string) *desc.SGuestQga
- func (*X86) IsKernelVersionEnableHyperv(kernelVersion string) bool
Constants ¶
View Source
const ( Arch_x86_64 string = "x86_64" Arch_aarch64 string = "aarch64" )
View Source
const ( ARM_MAX_CPUS = 64 ARM_SOCKETS = 2 ARM_CORES = 32 ARM_THREADS = 1 ARM_MEM_DEFAULT_SLOTS = 4 ARM_MAX_MEM_MB = 262144 )
View Source
const ( X86_MAX_CPUS = 240 X86_SOCKETS = 2 X86_CORES = 64 X86_THREADS = 1 X86_MEM_DEFAULT_SLOTS = 4 )
Variables ¶
View Source
var X86_MAX_MEM_MB uint = 524288
Functions ¶
This section is empty.
Types ¶
type ARM ¶
type ARM struct {
// contains filtered or unexported fields
}
func (*ARM) GenerateCdromDesc ¶
func (*ARM) GenerateCdromDesc(osName string, cdrom *desc.SGuestCdrom)
-device scsi-cd,drive=cd0,share-rw=true if=none,file=%s,id=cd0,media=cdrom
func (*ARM) GenerateCpuDesc ¶
func (*ARM) GenerateFloppyDesc ¶
func (*ARM) GenerateFloppyDesc(osName string, floppy *desc.SGuestFloppy)
func (*ARM) GenerateIsaSerialDesc ¶
func (*ARM) GenerateIsaSerialDesc() *desc.SGuestIsaSerial
func (*ARM) GenerateMachineDesc ¶
func (*ARM) GenerateMachineDesc(accel string) *desc.SGuestMachine
func (*ARM) GenerateMemDesc ¶
func (*ARM) GeneratePvpanicDesc ¶
func (*ARM) GeneratePvpanicDesc() *desc.SGuestPvpanic
func (*ARM) GenerateQgaDesc ¶
type Arch ¶
type Arch interface { GenerateCpuDesc(cpus uint, s KVMGuestInstance) (*desc.SGuestCpu, error) GenerateMemDesc() *desc.SGuestMem GenerateMachineDesc(accel string) *desc.SGuestMachine GenerateCdromDesc(osName string, cdrom *desc.SGuestCdrom) GenerateFloppyDesc(osName string, floppy *desc.SGuestFloppy) GenerateQgaDesc(qgaPath string) *desc.SGuestQga GeneratePvpanicDesc() *desc.SGuestPvpanic GenerateIsaSerialDesc() *desc.SGuestIsaSerial }
type KVMGuestInstance ¶
type X86 ¶
type X86 struct {
// contains filtered or unexported fields
}
func (*X86) GenerateCdromDesc ¶
func (*X86) GenerateCdromDesc(osName string, cdrom *desc.SGuestCdrom)
func (*X86) GenerateCpuDesc ¶
func (*X86) GenerateFloppyDesc ¶
func (*X86) GenerateFloppyDesc(osName string, floppy *desc.SGuestFloppy)
-device floppy,drive=floppy0 -drive id=floppy0,if=none
func (*X86) GenerateIsaSerialDesc ¶
func (*X86) GenerateIsaSerialDesc() *desc.SGuestIsaSerial
func (*X86) GenerateMachineDesc ¶
func (*X86) GenerateMachineDesc(accel string) *desc.SGuestMachine
func (*X86) GenerateMemDesc ¶
func (*X86) GeneratePvpanicDesc ¶
func (*X86) GeneratePvpanicDesc() *desc.SGuestPvpanic
func (*X86) GenerateQgaDesc ¶
func (*X86) IsKernelVersionEnableHyperv ¶
Click to show internal directories.
Click to hide internal directories.