
2.9.
CLASS: VM
CHAPTER 2.
API REFERENCE
int maximise_memory (session_id s, VM ref self, int total, bool approximate)
Arguments:
type
name
description
VM ref
self
The VM
int
total
Total amount of physical RAM to fit within
bool
approximate
If false the limit is calculated with the guest’s
current exact configuration. Otherwise a more
approximate calculation is performed
Return Type:
int
The maximum possible static-max
RPC name: get boot record
Overview:
Returns a record describing the VM’s dynamic state, initialised when the VM boots and updated
to reflect runtime configuration changes e.g. CPU hotplug.
Signature:
(VM record) get_boot_record (session_id s, VM ref self)
Arguments:
type
name
description
VM ref
self
The VM whose boot-time state to return
Return Type:
VM record
A record describing the VM
RPC name: assert operation valid
Overview:
Check to see whether this operation is acceptable in the current state of the system, raising an
error if the operation is invalid for some reason.
Signature:
void assert_operation_valid (session_id s, VM ref self, vm_operations op)
Arguments:
type
name
description
VM ref
self
reference to the object
vm operations
op
proposed operation
Return Type:
void
65