Skip to content

Commit

Permalink
Update kvm.go
Browse files Browse the repository at this point in the history
  • Loading branch information
bjwrigh authored Jun 25, 2024
1 parent d2606cf commit 58cfd1d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cmd/minimega/kvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type KVMConfig struct {

// Assign a migration image, generated by a previously saved VM to boot
// with. By default, images are read from the files directory as specified
// with -filepath. This can be overriden by using an absolute path.
// with -filepath. This can be overridden by using an absolute path.
// Migration images should be booted with a kernel/initrd, disk, or cdrom.
// Use 'vm migrate' to generate migration images from running VMs.
//
Expand Down Expand Up @@ -180,7 +180,7 @@ type KVMConfig struct {
Disks DiskConfigs

// If true will use xHCI USB controller. Otherwise will use EHCI.
// EHCI does not support USB 3.0, but may be used for backwards compatability.
// EHCI does not support USB 3.0, but may be used for backwards compatibility.
//
// Default: true
UsbUseXHCI bool
Expand All @@ -189,6 +189,12 @@ type KVMConfig struct {
// socket at the path provided
TpmSocketPath string

// Enables bidirectional copy paste instead of basic pasting into VM.
// Requires QEMU 6.1+ compiled with qemu-vdagent chardev and for spice-vdagent to be installed on VM.
//
// Default: false
BidirectionalCopyPaste bool

// Add additional arguments to be passed to the QEMU instance. For example:
//
// vm config qemu-append -serial tcp:localhost:4001
Expand Down Expand Up @@ -546,6 +552,7 @@ func (vm *KVMConfig) String() string {
fmt.Fprintf(w, "Sockets:\t%v\n", vm.Sockets)
fmt.Fprintf(w, "VGA:\t%v\n", vm.Vga)
fmt.Fprintf(w, "Usb Use XHCI:\t%v\n", vm.UsbUseXHCI)
fmt.Fprintf(w, "Bidirectional Copy Paste:\t%v\n", vm.BidirectionalCopyPaste)
fmt.Fprintf(w, "TPM Socket: \t%v\n", vm.TpmSocketPath)
w.Flush()
fmt.Fprintln(&o)
Expand Down

0 comments on commit 58cfd1d

Please sign in to comment.