1// Code generated by gengotypes.py. DO NOT EDIT.
2// source: libxl_types.idl
3
4package xenlight
5
6type Error int
7const(
8ErrorNonspecific Error = -1
9ErrorVersion Error = -2
10ErrorFail Error = -3
11ErrorNi Error = -4
12ErrorNomem Error = -5
13ErrorInval Error = -6
14ErrorBadfail Error = -7
15ErrorGuestTimedout Error = -8
16ErrorTimedout Error = -9
17ErrorNoparavirt Error = -10
18ErrorNotReady Error = -11
19ErrorOseventRegFail Error = -12
20ErrorBufferfull Error = -13
21ErrorUnknownChild Error = -14
22ErrorLockFail Error = -15
23ErrorJsonConfigEmpty Error = -16
24ErrorDeviceExists Error = -17
25ErrorCheckpointDevopsDoesNotMatch Error = -18
26ErrorCheckpointDeviceNotSupported Error = -19
27ErrorVnumaConfigInvalid Error = -20
28ErrorDomainNotfound Error = -21
29ErrorAborted Error = -22
30ErrorNotfound Error = -23
31ErrorDomainDestroyed Error = -24
32ErrorFeatureRemoved Error = -25
33ErrorProtocolErrorQmp Error = -26
34ErrorUnknownQmpError Error = -27
35ErrorQmpGenericError Error = -28
36ErrorQmpCommandNotFound Error = -29
37ErrorQmpDeviceNotActive Error = -30
38ErrorQmpDeviceNotFound Error = -31
39ErrorQemuApi Error = -32
40)
41
42type DomainType int
43const(
44DomainTypeInvalid DomainType = -1
45DomainTypeHvm DomainType = 1
46DomainTypePv DomainType = 2
47DomainTypePvh DomainType = 3
48)
49
50type RdmReserveStrategy int
51const(
52RdmReserveStrategyIgnore RdmReserveStrategy = 0
53RdmReserveStrategyHost RdmReserveStrategy = 1
54)
55
56type RdmReservePolicy int
57const(
58RdmReservePolicyInvalid RdmReservePolicy = -1
59RdmReservePolicyStrict RdmReservePolicy = 0
60RdmReservePolicyRelaxed RdmReservePolicy = 1
61)
62
63type ChannelConnection int
64const(
65ChannelConnectionUnknown ChannelConnection = 0
66ChannelConnectionPty ChannelConnection = 1
67ChannelConnectionSocket ChannelConnection = 2
68)
69
70type DeviceModelVersion int
71const(
72DeviceModelVersionUnknown DeviceModelVersion = 0
73DeviceModelVersionQemuXenTraditional DeviceModelVersion = 1
74DeviceModelVersionQemuXen DeviceModelVersion = 2
75)
76
77type ConsoleType int
78const(
79ConsoleTypeUnknown ConsoleType = 0
80ConsoleTypeSerial ConsoleType = 1
81ConsoleTypePv ConsoleType = 2
82ConsoleTypeVuart ConsoleType = 3
83)
84
85type DiskFormat int
86const(
87DiskFormatUnknown DiskFormat = 0
88DiskFormatQcow DiskFormat = 1
89DiskFormatQcow2 DiskFormat = 2
90DiskFormatVhd DiskFormat = 3
91DiskFormatRaw DiskFormat = 4
92DiskFormatEmpty DiskFormat = 5
93DiskFormatQed DiskFormat = 6
94)
95
96type DiskBackend int
97const(
98DiskBackendUnknown DiskBackend = 0
99DiskBackendPhy DiskBackend = 1
100DiskBackendTap DiskBackend = 2
101DiskBackendQdisk DiskBackend = 3
102DiskBackendStandalone DiskBackend = 4
103)
104
105type DiskSpecification int
106const(
107DiskSpecificationUnknown DiskSpecification = 0
108DiskSpecificationXen DiskSpecification = 1
109DiskSpecificationVirtio DiskSpecification = 2
110)
111
112type DiskTransport int
113const(
114DiskTransportUnknown DiskTransport = 0
115DiskTransportMmio DiskTransport = 1
116)
117
118type NicType int
119const(
120NicTypeUnknown NicType = 0
121NicTypeVifIoemu NicType = 1
122NicTypeVif NicType = 2
123)
124
125type P9Type int
126const(
127P9TypeUnknown P9Type = 0
128P9TypeQemu P9Type = 1
129P9TypeXen9Pfsd P9Type = 2
130)
131
132type ActionOnShutdown int
133const(
134ActionOnShutdownDestroy ActionOnShutdown = 1
135ActionOnShutdownRestart ActionOnShutdown = 2
136ActionOnShutdownRestartRename ActionOnShutdown = 3
137ActionOnShutdownPreserve ActionOnShutdown = 4
138ActionOnShutdownCoredumpDestroy ActionOnShutdown = 5
139ActionOnShutdownCoredumpRestart ActionOnShutdown = 6
140ActionOnShutdownSoftReset ActionOnShutdown = 7
141)
142
143type Trigger int
144const(
145TriggerUnknown Trigger = 0
146TriggerPower Trigger = 1
147TriggerSleep Trigger = 2
148TriggerNmi Trigger = 3
149TriggerInit Trigger = 4
150TriggerReset Trigger = 5
151TriggerS3Resume Trigger = 6
152)
153
154type TscMode int
155const(
156TscModeDefault TscMode = 0
157TscModeAlwaysEmulate TscMode = 1
158TscModeNative TscMode = 2
159TscModeNativeParavirt TscMode = 3
160)
161
162type GfxPassthruKind int
163const(
164GfxPassthruKindDefault GfxPassthruKind = 0
165GfxPassthruKindIgd GfxPassthruKind = 1
166)
167
168type TimerMode int
169const(
170TimerModeUnknown TimerMode = -1
171TimerModeDelayForMissedTicks TimerMode = 0
172TimerModeNoDelayForMissedTicks TimerMode = 1
173TimerModeNoMissedTicksPending TimerMode = 2
174TimerModeOneMissedTickPending TimerMode = 3
175)
176
177type BiosType int
178const(
179BiosTypeUnknown BiosType = 0
180BiosTypeRombios BiosType = 1
181BiosTypeSeabios BiosType = 2
182BiosTypeOvmf BiosType = 3
183)
184
185type Scheduler int
186const(
187SchedulerUnknown Scheduler = 0
188SchedulerSedf Scheduler = 4
189SchedulerCredit Scheduler = 5
190SchedulerCredit2 Scheduler = 6
191SchedulerArinc653 Scheduler = 7
192SchedulerRtds Scheduler = 8
193SchedulerNull Scheduler = 9
194)
195
196type ShutdownReason int
197const(
198ShutdownReasonUnknown ShutdownReason = -1
199ShutdownReasonPoweroff ShutdownReason = 0
200ShutdownReasonReboot ShutdownReason = 1
201ShutdownReasonSuspend ShutdownReason = 2
202ShutdownReasonCrash ShutdownReason = 3
203ShutdownReasonWatchdog ShutdownReason = 4
204ShutdownReasonSoftReset ShutdownReason = 5
205)
206
207type VgaInterfaceType int
208const(
209VgaInterfaceTypeUnknown VgaInterfaceType = 0
210VgaInterfaceTypeCirrus VgaInterfaceType = 1
211VgaInterfaceTypeStd VgaInterfaceType = 2
212VgaInterfaceTypeNone VgaInterfaceType = 3
213VgaInterfaceTypeQxl VgaInterfaceType = 4
214)
215
216type VendorDevice int
217const(
218VendorDeviceNone VendorDevice = 0
219VendorDeviceXenserver VendorDevice = 1
220)
221
222type ViridianEnlightenment int
223const(
224ViridianEnlightenmentBase ViridianEnlightenment = 0
225ViridianEnlightenmentFreq ViridianEnlightenment = 1
226ViridianEnlightenmentTimeRefCount ViridianEnlightenment = 2
227ViridianEnlightenmentReferenceTsc ViridianEnlightenment = 3
228ViridianEnlightenmentHcallRemoteTlbFlush ViridianEnlightenment = 4
229ViridianEnlightenmentApicAssist ViridianEnlightenment = 5
230ViridianEnlightenmentCrashCtl ViridianEnlightenment = 6
231ViridianEnlightenmentSynic ViridianEnlightenment = 7
232ViridianEnlightenmentStimer ViridianEnlightenment = 8
233ViridianEnlightenmentHcallIpi ViridianEnlightenment = 9
234ViridianEnlightenmentExProcessorMasks ViridianEnlightenment = 10
235ViridianEnlightenmentNoVpLimit ViridianEnlightenment = 11
236ViridianEnlightenmentCpuHotplug ViridianEnlightenment = 12
237)
238
239type Hdtype int
240const(
241HdtypeIde Hdtype = 1
242HdtypeAhci Hdtype = 2
243)
244
245type CheckpointedStream int
246const(
247CheckpointedStreamNone CheckpointedStream = 0
248CheckpointedStreamRemus CheckpointedStream = 1
249CheckpointedStreamColo CheckpointedStream = 2
250)
251
252type VuartType int
253const(
254VuartTypeUnknown VuartType = 0
255VuartTypeSbsaUart VuartType = 1
256)
257
258type VkbBackend int
259const(
260VkbBackendUnknown VkbBackend = 0
261VkbBackendQemu VkbBackend = 1
262VkbBackendLinux VkbBackend = 2
263)
264
265type VirtioTransport int
266const(
267VirtioTransportUnknown VirtioTransport = 0
268VirtioTransportMmio VirtioTransport = 1
269)
270
271type Passthrough int
272const(
273PassthroughDefault Passthrough = 0
274PassthroughDisabled Passthrough = 1
275PassthroughEnabled Passthrough = 2
276PassthroughSyncPt Passthrough = 3
277PassthroughSharePt Passthrough = 4
278)
279
280type IoportRange struct {
281First uint32
282Number uint32
283}
284
285type IomemRange struct {
286Start uint64
287Number uint64
288Gfn uint64
289}
290
291type VgaInterfaceInfo struct {
292Kind VgaInterfaceType
293}
294
295type VncInfo struct {
296Enable Defbool
297Listen string
298Passwd string
299Display int
300Findunused Defbool
301}
302
303type SpiceInfo struct {
304Enable Defbool
305Port int
306TlsPort int
307Host string
308DisableTicketing Defbool
309Passwd string
310AgentMouse Defbool
311Vdagent Defbool
312ClipboardSharing Defbool
313Usbredirection int
314ImageCompression string
315StreamingVideo string
316}
317
318type SdlInfo struct {
319Enable Defbool
320Opengl Defbool
321Display string
322Xauthority string
323}
324
325type Dominfo struct {
326Uuid Uuid
327Domid Domid
328Ssidref uint32
329SsidLabel string
330Running bool
331Blocked bool
332Paused bool
333Shutdown bool
334Dying bool
335NeverStop bool
336ShutdownReason ShutdownReason
337OutstandingMemkb uint64
338CurrentMemkb uint64
339SharedMemkb uint64
340PagedMemkb uint64
341MaxMemkb uint64
342CpuTime uint64
343VcpuMaxId uint32
344VcpuOnline uint32
345Cpupool uint32
346GpaddrBits byte
347DomainType DomainType
348}
349
350type Cpupoolinfo struct {
351Poolid uint32
352PoolName string
353Sched Scheduler
354NDom uint32
355Cpumap Bitmap
356}
357
358type Channelinfo struct {
359Backend string
360BackendId uint32
361Frontend string
362FrontendId uint32
363Devid Devid
364State int
365Evtch int
366Rref int
367Connection ChannelConnection
368ConnectionUnion ChannelinfoConnectionUnion
369}
370
371type ChannelinfoConnectionUnion interface {
372isChannelinfoConnectionUnion()
373}
374
375type ChannelinfoConnectionUnionPty struct {
376Path string
377}
378
379func (x ChannelinfoConnectionUnionPty) isChannelinfoConnectionUnion(){}
380
381type Vminfo struct {
382Uuid Uuid
383Domid Domid
384}
385
386type VersionInfo struct {
387XenVersionMajor int
388XenVersionMinor int
389XenVersionExtra string
390Compiler string
391CompileBy string
392CompileDomain string
393CompileDate string
394Capabilities string
395Changeset string
396VirtStart uint64
397Pagesize int
398Commandline string
399BuildId string
400}
401
402type SmbiosType int
403const(
404SmbiosTypeBiosVendor SmbiosType = 1
405SmbiosTypeBiosVersion SmbiosType = 2
406SmbiosTypeSystemManufacturer SmbiosType = 3
407SmbiosTypeSystemProductName SmbiosType = 4
408SmbiosTypeSystemVersion SmbiosType = 5
409SmbiosTypeSystemSerialNumber SmbiosType = 6
410SmbiosTypeBaseboardManufacturer SmbiosType = 7
411SmbiosTypeBaseboardProductName SmbiosType = 8
412SmbiosTypeBaseboardVersion SmbiosType = 9
413SmbiosTypeBaseboardSerialNumber SmbiosType = 10
414SmbiosTypeBaseboardAssetTag SmbiosType = 11
415SmbiosTypeBaseboardLocationInChassis SmbiosType = 12
416SmbiosTypeEnclosureManufacturer SmbiosType = 13
417SmbiosTypeEnclosureSerialNumber SmbiosType = 14
418SmbiosTypeEnclosureAssetTag SmbiosType = 15
419SmbiosTypeBatteryManufacturer SmbiosType = 16
420SmbiosTypeBatteryDeviceName SmbiosType = 17
421SmbiosTypeOem SmbiosType = 18
422)
423
424type Smbios struct {
425Key SmbiosType
426Value string
427}
428
429type DomainCreateInfo struct {
430Type DomainType
431Hap Defbool
432Oos Defbool
433Ssidref uint32
434SsidLabel string
435Name string
436Domid Domid
437Uuid Uuid
438Xsdata KeyValueList
439Platformdata KeyValueList
440Poolid uint32
441PoolName string
442RunHotplugScripts Defbool
443DriverDomain Defbool
444Passthrough Passthrough
445XendSuspendEvtchnCompat Defbool
446}
447
448type DomainRestoreParams struct {
449CheckpointedStream int
450StreamVersion uint32
451ColoProxyScript string
452UserspaceColoProxy Defbool
453}
454
455type SchedParams struct {
456Vcpuid int
457Weight int
458Cap int
459Period int
460Extratime int
461Budget int
462}
463
464type VcpuSchedParams struct {
465Sched Scheduler
466Vcpus []SchedParams
467}
468
469type DomainSchedParams struct {
470Sched Scheduler
471Weight int
472Cap int
473Period int
474Budget int
475Extratime int
476Slice int
477Latency int
478}
479
480type VnodeInfo struct {
481Memkb uint64
482Distances []uint32
483Pnode uint32
484Vcpus Bitmap
485}
486
487type GicVersion int
488const(
489GicVersionDefault GicVersion = 0
490GicVersionV2 GicVersion = 32
491GicVersionV3 GicVersion = 48
492)
493
494type TeeType int
495const(
496TeeTypeNone TeeType = 0
497TeeTypeOptee TeeType = 1
498TeeTypeFfa TeeType = 2
499)
500
501type SveType int
502const(
503SveTypeHw SveType = -1
504SveTypeDisabled SveType = 0
505SveType128 SveType = 128
506SveType256 SveType = 256
507SveType384 SveType = 384
508SveType512 SveType = 512
509SveType640 SveType = 640
510SveType768 SveType = 768
511SveType896 SveType = 896
512SveType1024 SveType = 1024
513SveType1152 SveType = 1152
514SveType1280 SveType = 1280
515SveType1408 SveType = 1408
516SveType1536 SveType = 1536
517SveType1664 SveType = 1664
518SveType1792 SveType = 1792
519SveType1920 SveType = 1920
520SveType2048 SveType = 2048
521)
522
523type RdmReserve struct {
524Strategy RdmReserveStrategy
525Policy RdmReservePolicy
526}
527
528type Altp2MMode int
529const(
530Altp2MModeDisabled Altp2MMode = 0
531Altp2MModeMixed Altp2MMode = 1
532Altp2MModeExternal Altp2MMode = 2
533Altp2MModeLimited Altp2MMode = 3
534)
535
536type DomainBuildInfo struct {
537MaxVcpus int
538AvailVcpus Bitmap
539Cpumap Bitmap
540Nodemap Bitmap
541VcpuHardAffinity []Bitmap
542VcpuSoftAffinity []Bitmap
543NumaPlacement Defbool
544TscMode TscMode
545MaxMemkb uint64
546TargetMemkb uint64
547VideoMemkb uint64
548ShadowMemkb uint64
549IommuMemkb uint64
550RtcTimeoffset uint32
551ExecSsidref uint32
552ExecSsidLabel string
553Localtime Defbool
554DisableMigrate Defbool
555Cpuid CpuidPolicyList
556BlkdevStart string
557VnumaNodes []VnodeInfo
558MaxGrantFrames uint32
559MaxMaptrackFrames uint32
560MaxGrantVersion int
561DeviceModelVersion DeviceModelVersion
562DeviceModelStubdomain Defbool
563StubdomainMemkb uint64
564StubdomainKernel string
565StubdomainCmdline string
566StubdomainRamdisk string
567DeviceModel string
568DeviceModelSsidref uint32
569DeviceModelSsidLabel string
570DeviceModelUser string
571Extra StringList
572ExtraPv StringList
573ExtraHvm StringList
574SchedParams DomainSchedParams
575Ioports []IoportRange
576Irqs []uint32
577Iomem []IomemRange
578ClaimMode Defbool
579EventChannels uint32
580Kernel string
581Cmdline string
582Ramdisk string
583DeviceTree string
584Acpi Defbool
585Bootloader string
586BootloaderArgs StringList
587BootloaderRestrict Defbool
588BootloaderUser string
589TimerMode TimerMode
590NestedHvm Defbool
591Apic Defbool
592DmRestrict Defbool
593Tee TeeType
594Type DomainType
595TypeUnion DomainBuildInfoTypeUnion
596ArchArm struct {
597GicVersion GicVersion
598Vuart VuartType
599SveVl SveType
600NrSpis uint32
601}
602ArchX86 struct {
603MsrRelaxed Defbool
604}
605Altp2M Altp2MMode
606VmtraceBufKb int
607Vpmu Defbool
608}
609
610type DomainBuildInfoTypeUnion interface {
611isDomainBuildInfoTypeUnion()
612}
613
614type DomainBuildInfoTypeUnionHvm struct {
615Firmware string
616Bios BiosType
617Pae Defbool
618Apic Defbool
619Acpi Defbool
620AcpiS3 Defbool
621AcpiS4 Defbool
622AcpiLaptopSlate Defbool
623Nx Defbool
624Viridian Defbool
625ViridianEnable Bitmap
626ViridianDisable Bitmap
627Timeoffset string
628Hpet Defbool
629VptAlign Defbool
630MmioHoleMemkb uint64
631TimerMode TimerMode
632NestedHvm Defbool
633Altp2M Defbool
634SystemFirmware string
635SmbiosFirmware string
636Smbios []Smbios
637AcpiFirmware string
638Hdtype Hdtype
639Nographic Defbool
640Vga VgaInterfaceInfo
641Vnc VncInfo
642Keymap string
643Sdl SdlInfo
644Spice SpiceInfo
645GfxPassthru Defbool
646GfxPassthruKind GfxPassthruKind
647Serial string
648Boot string
649Usb Defbool
650Usbversion int
651Usbdevice string
652VkbDevice Defbool
653Soundhw string
654XenPlatformPci Defbool
655UsbdeviceList StringList
656VendorDevice VendorDevice
657MsVmGenid MsVmGenid
658SerialList StringList
659Rdm RdmReserve
660RdmMemBoundaryMemkb uint64
661McaCaps uint64
662Pirq Defbool
663}
664
665func (x DomainBuildInfoTypeUnionHvm) isDomainBuildInfoTypeUnion(){}
666
667type DomainBuildInfoTypeUnionPv struct {
668Kernel string
669SlackMemkb uint64
670Bootloader string
671BootloaderArgs StringList
672Cmdline string
673Ramdisk string
674Features string
675E820Host Defbool
676}
677
678func (x DomainBuildInfoTypeUnionPv) isDomainBuildInfoTypeUnion(){}
679
680type DomainBuildInfoTypeUnionPvh struct {
681Pvshim Defbool
682PvshimPath string
683PvshimCmdline string
684PvshimExtra string
685}
686
687func (x DomainBuildInfoTypeUnionPvh) isDomainBuildInfoTypeUnion(){}
688
689type DeviceVfb struct {
690BackendDomid Domid
691BackendDomname string
692Devid Devid
693Vnc VncInfo
694Sdl SdlInfo
695Keymap string
696}
697
698type DeviceVkb struct {
699BackendDomid Domid
700BackendDomname string
701Devid Devid
702BackendType VkbBackend
703UniqueId string
704FeatureDisableKeyboard bool
705FeatureDisablePointer bool
706FeatureAbsPointer bool
707FeatureRawPointer bool
708FeatureMultiTouch bool
709Width uint32
710Height uint32
711MultiTouchWidth uint32
712MultiTouchHeight uint32
713MultiTouchNumContacts uint32
714}
715
716type DeviceVirtio struct {
717BackendDomid Domid
718BackendDomname string
719Type string
720Transport VirtioTransport
721GrantUsage Defbool
722Devid Devid
723Irq uint32
724Base uint64
725}
726
727type DeviceDisk struct {
728BackendDomid Domid
729BackendDomname string
730PdevPath string
731Vdev string
732Backend DiskBackend
733Format DiskFormat
734Script string
735Removable int
736Readwrite int
737IsCdrom int
738DirectIoSafe bool
739DiscardEnable Defbool
740Specification DiskSpecification
741Transport DiskTransport
742Irq uint32
743Base uint64
744ColoEnable Defbool
745ColoRestoreEnable Defbool
746ColoHost string
747ColoPort int
748ColoExport string
749ActiveDisk string
750HiddenDisk string
751Trusted Defbool
752GrantUsage Defbool
753}
754
755type DeviceNic struct {
756BackendDomid Domid
757BackendDomname string
758Devid Devid
759Mtu int
760Vlan string
761Model string
762Mac Mac
763Ip string
764Bridge string
765Ifname string
766Script string
767Nictype NicType
768RateBytesPerInterval uint64
769RateIntervalUsecs uint32
770Gatewaydev string
771ColoftForwarddev string
772ColoSockMirrorId string
773ColoSockMirrorIp string
774ColoSockMirrorPort string
775ColoSockComparePriInId string
776ColoSockComparePriInIp string
777ColoSockComparePriInPort string
778ColoSockCompareSecInId string
779ColoSockCompareSecInIp string
780ColoSockCompareSecInPort string
781ColoSockCompareNotifyId string
782ColoSockCompareNotifyIp string
783ColoSockCompareNotifyPort string
784ColoSockRedirector0Id string
785ColoSockRedirector0Ip string
786ColoSockRedirector0Port string
787ColoSockRedirector1Id string
788ColoSockRedirector1Ip string
789ColoSockRedirector1Port string
790ColoSockRedirector2Id string
791ColoSockRedirector2Ip string
792ColoSockRedirector2Port string
793ColoFilterMirrorQueue string
794ColoFilterMirrorOutdev string
795ColoFilterRedirector0Queue string
796ColoFilterRedirector0Indev string
797ColoFilterRedirector0Outdev string
798ColoFilterRedirector1Queue string
799ColoFilterRedirector1Indev string
800ColoFilterRedirector1Outdev string
801ColoComparePriIn string
802ColoCompareSecIn string
803ColoCompareOut string
804ColoCompareNotifyDev string
805ColoSockSecRedirector0Id string
806ColoSockSecRedirector0Ip string
807ColoSockSecRedirector0Port string
808ColoSockSecRedirector1Id string
809ColoSockSecRedirector1Ip string
810ColoSockSecRedirector1Port string
811ColoFilterSecRedirector0Queue string
812ColoFilterSecRedirector0Indev string
813ColoFilterSecRedirector0Outdev string
814ColoFilterSecRedirector1Queue string
815ColoFilterSecRedirector1Indev string
816ColoFilterSecRedirector1Outdev string
817ColoFilterSecRewriter0Queue string
818ColoCheckpointHost string
819ColoCheckpointPort string
820Trusted Defbool
821}
822
823type DevicePci struct {
824Func byte
825Dev byte
826Bus byte
827Domain int
828Vdevfn uint32
829VfuncMask uint32
830Msitranslate bool
831PowerMgmt bool
832Permissive bool
833Seize bool
834RdmPolicy RdmReservePolicy
835Name string
836}
837
838type DeviceRdm struct {
839Start uint64
840Size uint64
841Policy RdmReservePolicy
842}
843
844type UsbctrlType int
845const(
846UsbctrlTypeAuto UsbctrlType = 0
847UsbctrlTypePv UsbctrlType = 1
848UsbctrlTypeDevicemodel UsbctrlType = 2
849UsbctrlTypeQusb UsbctrlType = 3
850)
851
852type UsbdevType int
853const(
854UsbdevTypeHostdev UsbdevType = 1
855)
856
857type DeviceUsbctrl struct {
858Type UsbctrlType
859Devid Devid
860Version int
861Ports int
862BackendDomid Domid
863BackendDomname string
864}
865
866type DeviceUsbdev struct {
867Ctrl Devid
868Port int
869Type UsbdevType
870TypeUnion DeviceUsbdevTypeUnion
871}
872
873type DeviceUsbdevTypeUnion interface {
874isDeviceUsbdevTypeUnion()
875}
876
877type DeviceUsbdevTypeUnionHostdev struct {
878Hostbus byte
879Hostaddr byte
880}
881
882func (x DeviceUsbdevTypeUnionHostdev) isDeviceUsbdevTypeUnion(){}
883
884type DeviceDtdev struct {
885Path string
886}
887
888type DeviceVtpm struct {
889BackendDomid Domid
890BackendDomname string
891Devid Devid
892Uuid Uuid
893}
894
895type DeviceP9 struct {
896BackendDomid Domid
897BackendDomname string
898Tag string
899Path string
900SecurityModel string
901Devid Devid
902Type P9Type
903MaxSpace int
904MaxFiles int
905MaxOpenFiles int
906AutoDelete bool
907}
908
909type DevicePvcallsif struct {
910BackendDomid Domid
911BackendDomname string
912Devid Devid
913}
914
915type DeviceChannel struct {
916BackendDomid Domid
917BackendDomname string
918Devid Devid
919Name string
920Connection ChannelConnection
921ConnectionUnion DeviceChannelConnectionUnion
922}
923
924type DeviceChannelConnectionUnion interface {
925isDeviceChannelConnectionUnion()
926}
927
928type DeviceChannelConnectionUnionSocket struct {
929Path string
930}
931
932func (x DeviceChannelConnectionUnionSocket) isDeviceChannelConnectionUnion(){}
933
934type ConnectorParam struct {
935UniqueId string
936Width uint32
937Height uint32
938}
939
940type DeviceVdispl struct {
941BackendDomid Domid
942BackendDomname string
943Devid Devid
944BeAlloc bool
945Connectors []ConnectorParam
946}
947
948type VsndPcmFormat int
949const(
950VsndPcmFormatS8 VsndPcmFormat = 1
951VsndPcmFormatU8 VsndPcmFormat = 2
952VsndPcmFormatS16Le VsndPcmFormat = 3
953VsndPcmFormatS16Be VsndPcmFormat = 4
954VsndPcmFormatU16Le VsndPcmFormat = 5
955VsndPcmFormatU16Be VsndPcmFormat = 6
956VsndPcmFormatS24Le VsndPcmFormat = 7
957VsndPcmFormatS24Be VsndPcmFormat = 8
958VsndPcmFormatU24Le VsndPcmFormat = 9
959VsndPcmFormatU24Be VsndPcmFormat = 10
960VsndPcmFormatS32Le VsndPcmFormat = 11
961VsndPcmFormatS32Be VsndPcmFormat = 12
962VsndPcmFormatU32Le VsndPcmFormat = 13
963VsndPcmFormatU32Be VsndPcmFormat = 14
964VsndPcmFormatF32Le VsndPcmFormat = 15
965VsndPcmFormatF32Be VsndPcmFormat = 16
966VsndPcmFormatF64Le VsndPcmFormat = 17
967VsndPcmFormatF64Be VsndPcmFormat = 18
968VsndPcmFormatIec958SubframeLe VsndPcmFormat = 19
969VsndPcmFormatIec958SubframeBe VsndPcmFormat = 20
970VsndPcmFormatMuLaw VsndPcmFormat = 21
971VsndPcmFormatALaw VsndPcmFormat = 22
972VsndPcmFormatImaAdpcm VsndPcmFormat = 23
973VsndPcmFormatMpeg VsndPcmFormat = 24
974VsndPcmFormatGsm VsndPcmFormat = 25
975)
976
977type VsndParams struct {
978SampleRates []uint32
979SampleFormats []VsndPcmFormat
980ChannelsMin uint32
981ChannelsMax uint32
982BufferSize uint32
983}
984
985type VsndStreamType int
986const(
987VsndStreamTypeP VsndStreamType = 1
988VsndStreamTypeC VsndStreamType = 2
989)
990
991type VsndStream struct {
992UniqueId string
993Type VsndStreamType
994Params VsndParams
995}
996
997type VsndPcm struct {
998Name string
999Params VsndParams
1000Streams []VsndStream
1001}
1002
1003type DeviceVsnd struct {
1004BackendDomid Domid
1005BackendDomname string
1006Devid Devid
1007ShortName string
1008LongName string
1009Params VsndParams
1010Pcms []VsndPcm
1011}
1012
1013type DomainConfig struct {
1014CInfo DomainCreateInfo
1015BInfo DomainBuildInfo
1016Disks []DeviceDisk
1017Nics []DeviceNic
1018Pcidevs []DevicePci
1019Rdms []DeviceRdm
1020Dtdevs []DeviceDtdev
1021Vfbs []DeviceVfb
1022Vkbs []DeviceVkb
1023Virtios []DeviceVirtio
1024Vtpms []DeviceVtpm
1025P9S []DeviceP9
1026Pvcallsifs []DevicePvcallsif
1027Vdispls []DeviceVdispl
1028Vsnds []DeviceVsnd
1029Channels []DeviceChannel
1030Usbctrls []DeviceUsbctrl
1031Usbdevs []DeviceUsbdev
1032OnPoweroff ActionOnShutdown
1033OnReboot ActionOnShutdown
1034OnWatchdog ActionOnShutdown
1035OnCrash ActionOnShutdown
1036OnSoftReset ActionOnShutdown
1037}
1038
1039type Diskinfo struct {
1040Backend string
1041BackendId uint32
1042Frontend string
1043FrontendId uint32
1044Devid Devid
1045State int
1046Evtch int
1047Rref int
1048}
1049
1050type Nicinfo struct {
1051Backend string
1052BackendId uint32
1053Frontend string
1054FrontendId uint32
1055Devid Devid
1056State int
1057Evtch int
1058RrefTx int
1059RrefRx int
1060}
1061
1062type Vtpminfo struct {
1063Backend string
1064BackendId uint32
1065Frontend string
1066FrontendId uint32
1067Devid Devid
1068State int
1069Evtch int
1070Rref int
1071Uuid Uuid
1072}
1073
1074type Usbctrlinfo struct {
1075Type UsbctrlType
1076Devid Devid
1077Version int
1078Ports int
1079Backend string
1080BackendId uint32
1081Frontend string
1082FrontendId uint32
1083State int
1084Evtch int
1085RefUrb int
1086RefConn int
1087}
1088
1089type Vcpuinfo struct {
1090Vcpuid uint32
1091Cpu uint32
1092Online bool
1093Blocked bool
1094Running bool
1095VcpuTime uint64
1096Cpumap Bitmap
1097CpumapSoft Bitmap
1098}
1099
1100type Physinfo struct {
1101ThreadsPerCore uint32
1102CoresPerSocket uint32
1103MaxCpuId uint32
1104NrCpus uint32
1105CpuKhz uint32
1106TotalPages uint64
1107FreePages uint64
1108ScrubPages uint64
1109OutstandingPages uint64
1110SharingFreedPages uint64
1111SharingUsedFrames uint64
1112MaxPossibleMfn uint64
1113NrNodes uint32
1114HwCap Hwcap
1115CapHvm bool
1116CapPv bool
1117CapHvmDirectio bool
1118CapHap bool
1119CapShadow bool
1120CapIommuHapPtShare bool
1121CapVmtrace bool
1122CapVpmu bool
1123CapGnttabV1 bool
1124CapGnttabV2 bool
1125ArchCapabilities uint32
1126}
1127
1128type Connectorinfo struct {
1129UniqueId string
1130Width uint32
1131Height uint32
1132ReqEvtch int
1133ReqRref int
1134EvtEvtch int
1135EvtRref int
1136}
1137
1138type Vdisplinfo struct {
1139Backend string
1140BackendId uint32
1141Frontend string
1142FrontendId uint32
1143Devid Devid
1144State int
1145BeAlloc bool
1146Connectors []Connectorinfo
1147}
1148
1149type Streaminfo struct {
1150ReqEvtch int
1151ReqRref int
1152}
1153
1154type Pcminfo struct {
1155Streams []Streaminfo
1156}
1157
1158type Vsndinfo struct {
1159Backend string
1160BackendId uint32
1161Frontend string
1162FrontendId uint32
1163Devid Devid
1164State int
1165Pcms []Pcminfo
1166}
1167
1168type Vkbinfo struct {
1169Backend string
1170BackendId uint32
1171Frontend string
1172FrontendId uint32
1173Devid Devid
1174State int
1175Evtch int
1176Rref int
1177}
1178
1179type Numainfo struct {
1180Size uint64
1181Free uint64
1182Dists []uint32
1183}
1184
1185type Cputopology struct {
1186Core uint32
1187Socket uint32
1188Node uint32
1189}
1190
1191type Pcitopology struct {
1192Seg uint16
1193Bus byte
1194Devfn byte
1195Node uint32
1196}
1197
1198type SchedCreditParams struct {
1199TsliceMs int
1200RatelimitUs int
1201VcpuMigrDelayUs int
1202}
1203
1204type SchedCredit2Params struct {
1205RatelimitUs int
1206}
1207
1208type DomainRemusInfo struct {
1209Interval int
1210AllowUnsafe Defbool
1211Blackhole Defbool
1212Compression Defbool
1213Netbuf Defbool
1214Netbufscript string
1215Diskbuf Defbool
1216Colo Defbool
1217UserspaceColoProxy Defbool
1218}
1219
1220type EventType int
1221const(
1222EventTypeDomainShutdown EventType = 1
1223EventTypeDomainDeath EventType = 2
1224EventTypeDiskEject EventType = 3
1225EventTypeOperationComplete EventType = 4
1226EventTypeDomainCreateConsoleAvailable EventType = 5
1227)
1228
1229type Event struct {
1230Link EvLink
1231Domid Domid
1232Domuuid Uuid
1233ForUser uint64
1234Type EventType
1235TypeUnion EventTypeUnion
1236}
1237
1238type EventTypeUnion interface {
1239isEventTypeUnion()
1240}
1241
1242type EventTypeUnionDomainShutdown struct {
1243ShutdownReason byte
1244}
1245
1246func (x EventTypeUnionDomainShutdown) isEventTypeUnion(){}
1247
1248type EventTypeUnionDiskEject struct {
1249Vdev string
1250Disk DeviceDisk
1251}
1252
1253func (x EventTypeUnionDiskEject) isEventTypeUnion(){}
1254
1255type EventTypeUnionOperationComplete struct {
1256Rc int
1257}
1258
1259func (x EventTypeUnionOperationComplete) isEventTypeUnion(){}
1260
1261type PsrCmtType int
1262const(
1263PsrCmtTypeCacheOccupancy PsrCmtType = 1
1264PsrCmtTypeTotalMemCount PsrCmtType = 2
1265PsrCmtTypeLocalMemCount PsrCmtType = 3
1266)
1267
1268type PsrCbmType int
1269const(
1270PsrCbmTypeUnknown PsrCbmType = 0
1271PsrCbmTypeL3Cbm PsrCbmType = 1
1272PsrCbmTypeL3CbmCode PsrCbmType = 2
1273PsrCbmTypeL3CbmData PsrCbmType = 3
1274PsrCbmTypeL2Cbm PsrCbmType = 4
1275PsrCbmTypeMbaThrtl PsrCbmType = 5
1276)
1277
1278type PsrCatInfo struct {
1279Id uint32
1280CosMax uint32
1281CbmLen uint32
1282CdpEnabled bool
1283}
1284
1285type PsrFeatType int
1286const(
1287PsrFeatTypeCat PsrFeatType = 1
1288PsrFeatTypeMba PsrFeatType = 2
1289)
1290
1291type PsrHwInfo struct {
1292Id uint32
1293Type PsrFeatType
1294TypeUnion PsrHwInfoTypeUnion
1295}
1296
1297type PsrHwInfoTypeUnion interface {
1298isPsrHwInfoTypeUnion()
1299}
1300
1301type PsrHwInfoTypeUnionCat struct {
1302CosMax uint32
1303CbmLen uint32
1304CdpEnabled bool
1305}
1306
1307func (x PsrHwInfoTypeUnionCat) isPsrHwInfoTypeUnion(){}
1308
1309type PsrHwInfoTypeUnionMba struct {
1310CosMax uint32
1311ThrtlMax uint32
1312Linear bool
1313}
1314
1315func (x PsrHwInfoTypeUnionMba) isPsrHwInfoTypeUnion(){}
1316
1317