#NEWLINE# def getCapabilities( self ) : #NEWLINE# #INDENT# 'Return spoofed capabilities.' #NEWLINE# numa_topology = self . host_info . get_numa_topology ( ) #NEWLINE# if isinstance ( numa_topology , vconfig . LibvirtConfigCapsNUMATopology ) : #NEWLINE# #INDENT# numa_topology = numa_topology . to_xml ( ) #NEWLINE# #UNINDENT# return ( "<capabilities>\n  <host>\n    <uuid>cef19ce0-0ca2-11df-855d-b19fbce37686</uuid>\n    <cpu>\n      <arch>x86_64</arch>\n      <model>Penryn</model>\n      <vendor>Intel</vendor>\n      <topology sockets='%(sockets)s' cores='%(cores)s' threads='%(threads)s'/>\n      <feature name='xtpr'/>\n      <feature name='tm2'/>\n      <feature name='est'/>\n      <feature name='vmx'/>\n      <feature name='ds_cpl'/>\n      <feature name='monitor'/>\n      <feature name='pbe'/>\n      <feature name='tm'/>\n      <feature name='ht'/>\n      <feature name='ss'/>\n      <feature name='acpi'/>\n      <feature name='ds'/>\n      <feature name='vme'/>\n    </cpu>\n    <migration_features>\n      <live/>\n      <uri_transports>\n        <uri_transport>tcp</uri_transport>\n      </uri_transports>\n    </migration_features>\n    %(topology)s\n    <secmodel>\n      <model>apparmor</model>\n      <doi>0</doi>\n    </secmodel>\n  </host>\n\n  <guest>\n    <os_type>hvm</os_type>\n    <arch name='i686'>\n      <wordsize>32</wordsize>\n      <emulator>/usr/bin/qemu</emulator>\n      <machine>pc-0.14</machine>\n      <machine canonical='pc-0.14'>pc</machine>\n      <machine>pc-0.13</machine>\n      <machine>pc-0.12</machine>\n      <machine>pc-0.11</machine>\n      <machine>pc-0.10</machine>\n      <machine>isapc</machine>\n      <domain type='qemu'>\n      </domain>\n      <domain type='kvm'>\n        <emulator>/usr/bin/kvm</emulator>\n        <machine>pc-0.14</machine>\n        <machine canonical='pc-0.14'>pc</machine>\n        <machine>pc-0.13</machine>\n        <machine>pc-0.12</machine>\n        <machine>pc-0.11</machine>\n        <machine>pc-0.10</machine>\n        <machine>isapc</machine>\n      </domain>\n    </arch>\n    <features>\n      <cpuselection/>\n      <deviceboot/>\n      <pae/>\n      <nonpae/>\n      <acpi default='on' toggle='yes'/>\n      <apic default='on' toggle='no'/>\n    </features>\n  </guest>\n\n  <guest>\n    <os_type>hvm</os_type>\n    <arch name='x86_64'>\n      <wordsize>64</wordsize>\n      <emulator>/usr/bin/qemu-system-x86_64</emulator>\n      <machine>pc-0.14</machine>\n      <machine canonical='pc-0.14'>pc</machine>\n      <machine>pc-0.13</machine>\n      <machine>pc-0.12</machine>\n      <machine>pc-0.11</machine>\n      <machine>pc-0.10</machine>\n      <machine>isapc</machine>\n      <domain type='qemu'>\n      </domain>\n      <domain type='kvm'>\n        <emulator>/usr/bin/kvm</emulator>\n        <machine>pc-0.14</machine>\n        <machine canonical='pc-0.14'>pc</machine>\n        <machine>pc-0.13</machine>\n        <machine>pc-0.12</machine>\n        <machine>pc-0.11</machine>\n        <machine>pc-0.10</machine>\n        <machine>isapc</machine>\n      </domain>\n    </arch>\n    <features>\n      <cpuselection/>\n      <deviceboot/>\n      <acpi default='on' toggle='yes'/>\n      <apic default='on' toggle='no'/>\n    </features>\n  </guest>\n\n  <guest>\n    <os_type>hvm</os_type>\n    <arch name='armv7l'>\n      <wordsize>32</wordsize>\n      <emulator>/usr/bin/qemu-system-arm</emulator>\n      <machine>integratorcp</machine>\n      <machine>vexpress-a9</machine>\n      <machine>syborg</machine>\n      <machine>musicpal</machine>\n      <machine>mainstone</machine>\n      <machine>n800</machine>\n      <machine>n810</machine>\n      <machine>n900</machine>\n      <machine>cheetah</machine>\n      <machine>sx1</machine>\n      <machine>sx1-v1</machine>\n      <machine>beagle</machine>\n      <machine>beaglexm</machine>\n      <machine>tosa</machine>\n      <machine>akita</machine>\n      <machine>spitz</machine>\n      <machine>borzoi</machine>\n      <machine>terrier</machine>\n      <machine>connex</machine>\n      <machine>verdex</machine>\n      <machine>lm3s811evb</machine>\n      <machine>lm3s6965evb</machine>\n      <machine>realview-eb</machine>\n      <machine>realview-eb-mpcore</machine>\n      <machine>realview-pb-a8</machine>\n      <machine>realview-pbx-a9</machine>\n      <machine>versatilepb</machine>\n      <machine>versatileab</machine>\n      <domain type='qemu'>\n      </domain>\n    </arch>\n    <features>\n      <deviceboot/>\n    </features>\n  </guest>\n\n  <guest>\n    <os_type>hvm</os_type>\n    <arch name='mips'>\n      <wordsize>32</wordsize>\n      <emulator>/usr/bin/qemu-system-mips</emulator>\n      <machine>malta</machine>\n      <machine>mipssim</machine>\n      <machine>magnum</machine>\n      <machine>pica61</machine>\n      <machine>mips</machine>\n      <domain type='qemu'>\n      </domain>\n    </arch>\n    <features>\n      <deviceboot/>\n    </features>\n  </guest>\n\n  <guest>\n    <os_type>hvm</os_type>\n    <arch name='mipsel'>\n      <wordsize>32</wordsize>\n      <emulator>/usr/bin/qemu-system-mipsel</emulator>\n      <machine>malta</machine>\n      <machine>mipssim</machine>\n      <machine>magnum</machine>\n      <machine>pica61</machine>\n      <machine>mips</machine>\n      <domain type='qemu'>\n      </domain>\n    </arch>\n    <features>\n      <deviceboot/>\n    </features>\n  </guest>\n\n  <guest>\n    <os_type>hvm</os_type>\n    <arch name='sparc'>\n      <wordsize>32</wordsize>\n      <emulator>/usr/bin/qemu-system-sparc</emulator>\n      <machine>SS-5</machine>\n      <machine>leon3_generic</machine>\n      <machine>SS-10</machine>\n      <machine>SS-600MP</machine>\n      <machine>SS-20</machine>\n      <machine>Voyager</machine>\n      <machine>LX</machine>\n      <machine>SS-4</machine>\n      <machine>SPARCClassic</machine>\n      <machine>SPARCbook</machine>\n      <machine>SS-1000</machine>\n      <machine>SS-2000</machine>\n      <machine>SS-2</machine>\n      <domain type='qemu'>\n      </domain>\n    </arch>\n  </guest>\n\n  <guest>\n    <os_type>hvm</os_type>\n    <arch name='ppc'>\n      <wordsize>32</wordsize>\n      <emulator>/usr/bin/qemu-system-ppc</emulator>\n      <machine>g3beige</machine>\n      <machine>virtex-ml507</machine>\n      <machine>mpc8544ds</machine>\n      <machine canonical='bamboo-0.13'>bamboo</machine>\n      <machine>bamboo-0.13</machine>\n      <machine>bamboo-0.12</machine>\n      <machine>ref405ep</machine>\n      <machine>taihu</machine>\n      <machine>mac99</machine>\n      <machine>prep</machine>\n      <domain type='qemu'>\n      </domain>\n    </arch>\n    <features>\n      <deviceboot/>\n    </features>\n  </guest>\n\n</capabilities>" % { #NEWLINE# #INDENT# 'sockets' : self . host_info . cpu_sockets , #NEWLINE# 'cores' : self . host_info . cpu_cores , #NEWLINE# 'threads' : self . host_info . cpu_threads , #NEWLINE# 'topology' : self , #NEWLINE# #UNINDENT# } )