Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Msvm_MemorySettingData class

Hyper-V

Represents the configured state of the memory for a virtual machine.

The following syntax is simplified Managed Object Format (MOF) code, and it includes all of the inherited properties.

Syntax

class Msvm_MemorySettingData : CIM_ResourceAllocationSettingData
{
  string  InstanceID;
  string  Caption = "Memory Default Settings";
  string  Description = "Describes the default settings for the memory resources.";
  string  ElementName;
  uint16  ResourceType = 4;
  string  OtherResourceType;
  string  ResourceSubType = "Microsoft:Hyper-V:Memory";
  string  PoolID;
  uint16  ConsumerVisibility;
  string  HostResource[];
  string  AllocationUnits = "byte * 2^20";
  uint64  VirtualQuantity;
  uint64  Reservation;
  uint64  Limit;
  uint32  Weight;
  boolean AutomaticAllocation = True;
  boolean AutomaticDeallocation = True;
  string  Parent;
  string  Connection[];
  string  Address;
  uint16  MappingBehavior;
  string  AddressOnParent;
  string  VirtualQuantityUnits = "byte * 2^20";
  boolean DynamicMemoryEnabled;
  uint32  TargetMemoryBuffer;
  boolean IsVirtualized = True;
  boolean SwapFilesInUse;
  uint64  MaxMemoryBlocksPerNumaNode;
};

Members

The Msvm_MemorySettingData class has these types of members:

Properties

The Msvm_MemorySettingData class has these properties.

Address
Data type: string
Access type: Read-only

The address of the resource. For example, the MAC address of an Ethernet port. This property is inherited from CIM_ResourceAllocationSettingData.

AddressOnParent
Data type: string
Access type: Read-only

Describes the address of this resource in the context of the parent. The Parent and AddressOnParent properties are used to describe the controller relationship as well as the ordering of devices on a controller. This property is inherited from CIM_ResourceAllocationSettingData.

AllocationUnits
Data type: string
Access type: Read-only

The units of allocation used by the Reservation and Limit properties. This property is inherited from CIM_ResourceAllocationSettingData.

AutomaticAllocation
Data type: boolean
Access type: Read-only

Indicates whether the resource will be automatically allocated. For example, when this property is set to True and the consuming virtual machine is powered on, this resource would be allocated. A value of False indicates the resource must be explicitly allocated. For example, the setting may represent removable media (such as a CD-ROM or a floppy disk) where at startup, the media is not present. An explicit operation is required to allocate the resource. This property is inherited from CIM_ResourceAllocationSettingData.

AutomaticDeallocation
Data type: boolean
Access type: Read-only

Indicates whether the resource will be automatically allocated. For example when this property is set to True and the consuming virtual machine is powered on, this resource would be allocated. When this property is False, the resource must be explicitly allocated. For example, the setting may represent removable media (such as a CD-ROM or a floppy disk) where at startup, the media is not present. An explicit operation is required to allocate the resource. This property is inherited from CIM_ResourceAllocationSettingData.

Caption
Data type: string
Access type: Read-only
Qualifiers: MaxLen (64)

A short description of the object. This property is inherited from CIM_ManagedElement.

Connection
Data type: string array
Access type: Read-only

The device to which this resource is connected. For example, a named network or switch port. This property is inherited from CIM_ResourceAllocationSettingData.

ConsumerVisibility
Data type: uint16
Access type: Read-only

Describes the consumers visibility to the allocated resource. This property is inherited from CIM_ResourceAllocationSettingData.

Description
Data type: string
Access type: Read-only

A description of the object. This property is inherited from CIM_ManagedElement.

DynamicMemoryEnabled
Data type: boolean
Access type: Read-only

Indicates whether dynamic memory is enabled for the virtual machine.

ElementName
Data type: string
Access type: Read-only

A display name for the object. This property is inherited from CIM_SettingData.

HostResource
Data type: string array
Access type: Read-only

The first element of this array contains a reference to the underlying host resource to be assigned. This property is inherited from CIM_ResourceAllocationSettingData, but it is not used.

InstanceID
Data type: string
Access type: Read-only
Qualifiers: Key

Uniquely identifies an instance of this class. This property is inherited from CIM_ManagedElement.

IsVirtualized
Data type: boolean
Access type: Read-only

Indicates whether this device is virtualized or passed through. When set to False, the underlying or host resource is used. At least one item should be present in the DeviceID property. When set to True, the resource is virtualized and may not map directly to an underlying/host resource. Some implementations may support specific assignment for virtualized resources, in which case the host resources are exposed by using the DeviceID property. This property is always set to True.

Limit
Data type: uint64
Access type: Read-only

The maximum amount of memory that may be consumed by the virtual machine. For a virtual machine with dynamic memory enabled, this represents the maximum memory setting. This property is inherited from CIM_ResourceAllocationSettingData.

MappingBehavior
Data type: uint16
Access type: Read-only

Specifies how this resource maps to underlying resources. This property is inherited from CIM_ResourceAllocationSettingData.

MaxMemoryBlocksPerNumaNode
Data type: uint64
Access type: Read-only

The maximum amount of memory that can be observed within the virtual machine as belonging to a single NUMA node.

OtherResourceType
Data type: string
Access type: Read-only

A string that describes the resource type when a well-defined value is not available and ResourceType has the value "Other". This property is inherited from CIM_ResourceAllocationSettingData.

Parent
Data type: string
Access type: Read-only

The parent of the resource. For example, a controller for the current allocation. This property is inherited from CIM_ResourceAllocationSettingData.

PoolID
Data type: string
Access type: Read-only

The identifier of the resource pool from which this resource was allocated. This property is inherited from CIM_ResourceAllocationSettingData.

Reservation
Data type: uint64
Access type: Read-only

Specifies the amount of memory guaranteed to be available for this virtual machine. For a virtual machine with dynamic memory enabled, this represents the minimum memory setting. This property is inherited from CIM_ResourceAllocationSettingData.

ResourceSubType
Data type: string
Access type: Read-only

A string that describes an implementation specific subtype for this resource. For example, this may be used to distinguish different models of the same resource type. This property is inherited from CIM_ResourceAllocationSettingData.

ResourceType
Data type: uint16
Access type: Read-only

The type of resource that this allocation setting represents. This property is inherited from CIM_ResourceAllocationSettingData, and it is always set to 4 (Memory).

SwapFilesInUse
Data type: boolean
Access type: Read-only

True if second level paging is active; otherwise, False.

TargetMemoryBuffer
Data type: uint32
Access type: Read-only

Defines the amount of extra memory that should be reserved for a virtual machine at runtime, as a percentage of the total memory that the virtual machine is thought to need. This only applies to virtual machines with dynamic memory enabled.

This property can be in the range of 5 to 2000.

VirtualQuantity
Data type: uint64
Access type: Read-only

The total amount of RAM in the virtual machine, as seen by the guest operating system. For a virtual machine with dynamic memory enabled, this represents the initial memory available at startup. This property is inherited from CIM_ResourceAllocationSettingData.

VirtualQuantityUnits
Data type: string
Access type: Read-only

Specifies the unit of measurement for this resource allocation. The value of this property must be a legal value of the Programmatic Units qualifier as defined in Annex C.1 of DSP0004 V2.5 or later. This property is inherited from CIM_ResourceAllocationSettingData.

Weight
Data type: uint32
Access type: Read-only

Defines the memory allocation weighting value for each virtual machine. After all reserves have been met, the remaining memory of the hosting platform will be allocated to virtual machines based on their relative weights (not to exceed the value specified by the Limit property). This property is inherited from CIM_ResourceAllocationSettingData.

Remarks

Access to the Msvm_MemorySettingData class might be restricted by UAC Filtering. For more information, see User Account Control and WMI.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Namespace

\\Root\Virtualization\V2

MOF

WindowsVirtualization.V2.mof

See also

CIM_ResourceAllocationSettingData
Memory Classes

 

 

Build date: 11/16/2013

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.