[libvirt] [PATCH 01/12] Revert "qemu: Support chardevs with ARM virt machines"

Cole Robinson posted 12 patches 8 years, 7 months ago
Only 6 patches received!
[libvirt] [PATCH 01/12] Revert "qemu: Support chardevs with ARM virt machines"
Posted by Cole Robinson 8 years, 7 months ago
This reverts commit 70c9b44270f75bfb7a5701d81aa49380d139e8f0.

This commit breaks existing aarch64 machvirt configs with:

    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>

Which fails with:

error: Failed to start domain fedora25-aarch64
error: internal error: process exited while connecting to monitor:
2017-06-26T13:55:34.726293Z qemu-system-aarch64: -chardev pty,id=charserial0:
char device redirected to /dev/pts/5 (label charserial0)
2017-06-26T13:55:34.782121Z qemu-system-aarch64: -device
isa-serial,chardev=charserial0,id=serial0: No 'ISA' bus found for device
'isa-serial'

Signed-off-by: Cole Robinson <crobinso@redhat.com>
---
 src/qemu/qemu_capabilities.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 12d9477cf..61c9a1066 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -5573,11 +5573,6 @@ virQEMUCapsSupportsChardev(const virDomainDef *def,
     if ((def->os.arch != VIR_ARCH_ARMV7L) && (def->os.arch != VIR_ARCH_AARCH64))
         return true;
 
-    /* The virt machine has a PCIe bus and allows plugging in the same type of
-     * devices as x86 systems do on a PCIe bus. */
-    if (qemuDomainIsVirt(def))
-        return true;
-
     /* This may not be true for all ARM machine types, but at least
      * the only supported non-virtio serial devices of vexpress and versatile
      * don't have the -chardev property wired up. */
-- 
2.13.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 01/12] Revert "qemu: Support chardevs with ARM virt machines"
Posted by Andrea Bolognani 8 years, 7 months ago
On Mon, 2017-06-26 at 14:01 -0400, Cole Robinson wrote:
> This reverts commit 70c9b44270f75bfb7a5701d81aa49380d139e8f0.
> 
> This commit breaks existing aarch64 machvirt configs with:
> 
>     <serial type='pty'>
>       <target port='0'/>
>     </serial>
>     <console type='pty'>
>       <target type='serial' port='0'/>
>     </console>
> 
> Which fails with:
> 
> error: Failed to start domain fedora25-aarch64
> error: internal error: process exited while connecting to monitor:
> 2017-06-26T13:55:34.726293Z qemu-system-aarch64: -chardev pty,id=charserial0:
> char device redirected to /dev/pts/5 (label charserial0)
> 2017-06-26T13:55:34.782121Z qemu-system-aarch64: -device
> isa-serial,chardev=charserial0,id=serial0: No 'ISA' bus found for device
> 'isa-serial'
> 
> Signed-off-by: Cole Robinson <crobinso@redhat.com>

Reviewed-by: Andrea Bolognani <abologna@redhat.com>

I will probably not be able to look at the rest of the series
for a few more days, so please go ahead and push this one
right away so at least the regression will be gone.

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 01/12] Revert "qemu: Support chardevs with ARM virt machines"
Posted by Cole Robinson 8 years, 7 months ago
On 06/27/2017 01:22 AM, Andrea Bolognani wrote:
> On Mon, 2017-06-26 at 14:01 -0400, Cole Robinson wrote:
>> This reverts commit 70c9b44270f75bfb7a5701d81aa49380d139e8f0.
>>  
>> This commit breaks existing aarch64 machvirt configs with:
>>  
>>      <serial type='pty'>
>>        <target port='0'/>
>>      </serial>
>>      <console type='pty'>
>>        <target type='serial' port='0'/>
>>      </console>
>>  
>> Which fails with:
>>  
>> error: Failed to start domain fedora25-aarch64
>> error: internal error: process exited while connecting to monitor:
>> 2017-06-26T13:55:34.726293Z qemu-system-aarch64: -chardev pty,id=charserial0:
>> char device redirected to /dev/pts/5 (label charserial0)
>> 2017-06-26T13:55:34.782121Z qemu-system-aarch64: -device
>> isa-serial,chardev=charserial0,id=serial0: No 'ISA' bus found for device
>> 'isa-serial'
>>  
>> Signed-off-by: Cole Robinson <crobinso@redhat.com>
> 
> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
> 
> I will probably not be able to look at the rest of the series
> for a few more days, so please go ahead and push this one
> right away so at least the regression will be gone.
> 

Sounds good, I've pushed this one now

- Cole


--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list