Documentation ¶
Overview ¶
Package kvm provides a kvm-based implementation of the platform interface.
Index ¶
- func TranslateToPhysical(virtual uintptr) (physical uintptr, length uintptr, ok bool)
- type KVM
- func (*KVM) CooperativelySchedulesAddressSpace() bool
- func (*KVM) MapUnit() uint64
- func (*KVM) MaxUserAddress() usermem.Addr
- func (k *KVM) Memory() platform.Memory
- func (*KVM) MinUserAddress() usermem.Addr
- func (k *KVM) NewAddressSpace(_ interface{}) (platform.AddressSpace, <-chan struct{}, error)
- func (k *KVM) NewContext() platform.Context
- func (*KVM) SupportsAddressSpaceIO() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KVM ¶
type KVM struct { platform.NoCPUPreemptionDetection // filemem is our memory source. *filemem.FileMem // contains filtered or unexported fields }
KVM represents a lightweight VM context.
func (*KVM) CooperativelySchedulesAddressSpace ¶
CooperativelySchedulesAddressSpace implements platform.Platform.CooperativelySchedulesAddressSpace.
func (*KVM) MaxUserAddress ¶
MaxUserAddress returns the first address that may not be used.
func (*KVM) MinUserAddress ¶
MinUserAddress returns the lowest available address.
func (*KVM) NewAddressSpace ¶
func (k *KVM) NewAddressSpace(_ interface{}) (platform.AddressSpace, <-chan struct{}, error)
NewAddressSpace returns a new pagetable root.
func (*KVM) NewContext ¶
NewContext returns an interruptible context.
func (*KVM) SupportsAddressSpaceIO ¶
SupportsAddressSpaceIO implements platform.Platform.SupportsAddressSpaceIO.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.