-
Notifications
You must be signed in to change notification settings - Fork 63
/
qemu_displays.go
41 lines (35 loc) · 2.18 KB
/
qemu_displays.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors.
// Licensed under the BSD-3-Clause License (the "License").
// You may not use this file except in compliance with the License.
package qemu
import "fmt"
type QemuDisplayType string
const (
QemuDisplayTypeAtiVga = QemuDisplayType("ati-vga") // bus PCI
QemuDisplayTypeBochsDisplay = QemuDisplayType("bochs-display") // bus PCI
QemuDisplayTypeCirrusVga = QemuDisplayType("cirrus-vga") // bus PCI, desc "Cirrus CLGD 54xx VGA"
QemuDisplayTypeIsaCirrusVga = QemuDisplayType("isa-cirrus-vga") // bus ISA
QemuDisplayTypeIsaVga = QemuDisplayType("isa-vga") // bus ISA
QemuDisplayTypeQxl = QemuDisplayType("qxl") // bus PCI, desc "Spice QXL GPU (secondary)"
QemuDisplayTypeQxlVga = QemuDisplayType("qxl-vga") // bus PCI, desc "Spice QXL GPU (primary, vga compatible)"
QemuDisplayTypeRamfb = QemuDisplayType("ramfb") // bus System, desc "ram framebuffer standalone device"
QemuDisplayTypeSecondaryVga = QemuDisplayType("secondary-vga") // bus PCI
QemuDisplayTypeSga = QemuDisplayType("sga") // bus ISA, desc "Serial Graphics Adapter"
QemuDisplayTypeVGA = QemuDisplayType("VGA") // bus PCI
QemuDisplayTypeVhostUserGpu = QemuDisplayType("vhost-user-gpu") // bus virtio-bus
QemuDisplayTypeVhostUserGpuPci = QemuDisplayType("vhost-user-gpu-pci") // bus PCI
QemuDisplayTypeVhostUserVga = QemuDisplayType("vhost-user-vga") // bus PCI
QemuDisplayTypeVirtioGpuDevice = QemuDisplayType("virtio-gpu-device") // bus virtio-bus
QemuDisplayTypeVirtioGpuPci = QemuDisplayType("virtio-gpu-pci") // bus PCI, alias "virtio-gpu"
QemuDisplayTypeVirtioVga = QemuDisplayType("virtio-vga") // bus PCI
QemuDisplayTypeVmwareSvga = QemuDisplayType("vmware-svga") // bus PCI
QemuDisplayTypeNone = QemuDisplayType("none")
)
type QemuDisplay interface {
fmt.Stringer
}
type QemuDisplayNone struct{}
func (qd QemuDisplayNone) String() string {
return string(QemuDisplayTypeNone)
}