Documentation
¶
Index ¶
Constants ¶
View Source
const ( MMIOHoleAddr = 0x0d0000000 AfterMMIOHoleAddr = 0x100000000 )
Variables ¶
This section is empty.
Functions ¶
func ValidateKVM ¶
ValidateKVM returns an error if KVM doesn't support the required extensions.
Types ¶
type Arch ¶
type Arch struct {
// contains filtered or unexported fields
}
func (*Arch) SetupMemory ¶
func (*Arch) SetupMemory(mem []byte) ([]kvm.UserspaceMemoryRegion, error)
SetupMemory partitions mem into regions. If mem is larger than 3G, it is split into two regions with a 1G hole for mmio devies at MMIOHoleAddr.
Click to show internal directories.
Click to hide internal directories.