-
Couldn't load subscription status.
- Fork 7
Switch Back to LegacySerial for Aarch64 #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -172,10 +172,10 @@ func NewDefaultAarch64Config(name string, numCpus uint32, numMemMB uint32, sockD | |||||||||
| Memory: mem, | ||||||||||
| CharDevices: []qcli.CharDevice{ | ||||||||||
| qcli.CharDevice{ | ||||||||||
| Driver: qcli.PCISerialDevice, | ||||||||||
| Driver: qcli.LegacySerial, | ||||||||||
| Backend: qcli.Socket, | ||||||||||
| ID: "serial0", | ||||||||||
| Path: "/tmp/console.sock", | ||||||||||
| Path: filepath.Join(sockDir, "console.sock"), | ||||||||||
| }, | ||||||||||
| qcli.CharDevice{ | ||||||||||
| Driver: qcli.LegacySerial, | ||||||||||
|
|
@@ -184,12 +184,9 @@ func NewDefaultAarch64Config(name string, numCpus uint32, numMemMB uint32, sockD | |||||||||
| Path: filepath.Join(sockDir, "monitor.sock"), | ||||||||||
| }, | ||||||||||
| }, | ||||||||||
| SerialDevices: []qcli.SerialDevice{ | ||||||||||
| qcli.SerialDevice{ | ||||||||||
| Driver: qcli.PCISerialDevice, | ||||||||||
| ID: "pciser0", | ||||||||||
| ChardevIDs: []string{"serial0"}, | ||||||||||
| MaxPorts: 1, | ||||||||||
| LegacySerialDevices: []qcli.LegacySerialDevice{ | ||||||||||
| qcli.LegacySerialDevice{ | ||||||||||
| ChardevID: "serial0", | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we're going to want both; in case someone boots an image using console=ttyS0, and a different image with console=ttyAMA0. I think we can fix this in qcli though; that is, if we use the PCISerialDevice and set Legacy, we should get: Then we can have both -- this does mean that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can go the PR with the console path fix. |
||||||||||
| }, | ||||||||||
| }, | ||||||||||
| MonitorDevices: []qcli.MonitorDevice{ | ||||||||||
|
|
@@ -420,6 +417,11 @@ func GenerateQConfig(runDir, sockDir string, v VMDef) (*qcli.Config, error) { | |||||||||
| Type: "cdrom", | ||||||||||
| ReadOnly: true, | ||||||||||
| } | ||||||||||
| rt := runtime.GOARCH | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| if (rt == "aarch64" || rt == "arm64") { | ||||||||||
| qd.Attach = "virtio" | ||||||||||
| log.Infof("WARK: arch %s overriding cdrom Attach to virtio", rt) | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Let's drop this |
||||||||||
| } | ||||||||||
| if v.Boot == "cdrom" { | ||||||||||
| qd.BootIndex = "0" | ||||||||||
| log.Infof("Boot from cdrom requested: bootindex=%s", qd.BootIndex) | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a stand-alone fix. Let's put this in as it's own PR.