mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Support all backend serial devices for pSeries guest
Currently, it only considers PTY backend serial devices for pseries. It need to support all kinds of serial devices. This patch is to fix the problem which is that it doesn't work when specifying source type as file. Signed-off-by: Li Zhang <zhlcindy@linux.vnet.ibm.com>
This commit is contained in:
parent
c4bbaaf877
commit
da3d40c0eb
@ -923,7 +923,6 @@ int qemuDomainAssignSpaprVIOAddresses(virDomainDefPtr def,
|
||||
|
||||
for (i = 0 ; i < def->nserials; i++) {
|
||||
if (def->serials[i]->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL &&
|
||||
def->serials[i]->source.type == VIR_DOMAIN_CHR_TYPE_PTY &&
|
||||
(def->os.arch == VIR_ARCH_PPC64) &&
|
||||
STREQ(def->os.machine, "pseries"))
|
||||
def->serials[i]->info.type = VIR_DOMAIN_DEVICE_ADDRESS_TYPE_SPAPRVIO;
|
||||
@ -6970,7 +6969,6 @@ qemuBuildChrDeviceStr(virDomainChrDefPtr serial,
|
||||
|
||||
if ((arch == VIR_ARCH_PPC64) && STREQ(machine, "pseries")) {
|
||||
if (serial->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL &&
|
||||
serial->source.type == VIR_DOMAIN_CHR_TYPE_PTY &&
|
||||
serial->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_SPAPRVIO) {
|
||||
virBufferAsprintf(&cmd, "spapr-vty,chardev=char%s",
|
||||
serial->info.alias);
|
||||
|
Loading…
x
Reference in New Issue
Block a user