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