[pve-devel] [PATCH 3/4] convert parallel device to new qemu syntax V2

Dietmar Maurer dietmar at proxmox.com
Fri Sep 9 13:03:39 CEST 2011


> so, do you want i code something like
> 
> serial0: SERIALDEVICE
> serial1: SERIALDEVICE
> 
> parallel0: PARALLELDEVICE
> parallel1: PARALLELDEVICE
> 
> 
> to replace
> 
> serial : SERIALDEVICE { , SERIALDEVICE } parallel : PARALLELDEVICE { ,
> PARALLELDEVICE }

yes. 

# grep MAX_SERIAL_PORTS qemu-kvm/*.h
qemu-kvm/sysemu.h:#define MAX_SERIAL_PORTS 4

# grep MAX_PARALLEL_PORTS qemu-kvm/*.h 
qemu-kvm/sysemu.h:#define MAX_PARALLEL_PORTS 3

- Dietmar

> 
> 
> 
> ----- Mail original -----
> 
> De: "Dietmar Maurer" <dietmar at proxmox.com>
> À: "Derumier Alexandre" <aderumier at odiso.com>, pve-
> devel at pve.proxmox.com
> Envoyé: Vendredi 9 Septembre 2011 12:25:00
> Objet: RE: [pve-devel] [PATCH 3/4] convert parallel device to new qemu syntax
> V2
> 
> same here, all parrallel devices gets the same ID??
> 
> > -----Original Message-----
> > From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> > bounces at pve.proxmox.com] On Behalf Of Derumier Alexandre
> > Sent: Freitag, 09. September 2011 10:27
> > To: pve-devel at pve.proxmox.com
> > Subject: [pve-devel] [PATCH 3/4] convert parallel device to new qemu
> > syntax V2
> >
> >
> > Signed-off-by: Derumier Alexandre <aderumier at odiso.com>
> > ---
> > PVE/QemuServer.pm | 3 ++-
> > 1 files changed, 2 insertions(+), 1 deletions(-)
> >
> > diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index
> > 29b304b..e76fc80
> > 100644
> > --- a/PVE/QemuServer.pm
> > +++ b/PVE/QemuServer.pm
> > @@ -1982,7 +1982,8 @@ sub config_to_command { foreach my $dev (@dl) {
> > next if !$dev; if (-c $dev) {
> > - push @$cmd, '-parallel', "$dev";
> > + push @$cmd, '-chardev', "parport,id=parallel0,path=$dev"; push
> > + @$cmd, '-device', "isa-parallel,chardev=parallel0";
> > }
> > }
> > }
> > --
> > 1.7.2.5
> >
> > _______________________________________________
> > pve-devel mailing list
> > pve-devel at pve.proxmox.com
> > http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 
> 
> 
> 
> --
> 
> --
> 
> 
> 
> 
> 
> 	Alexandre Derumier
> Ingénieur système
> e-mail : aderumier at odiso.com
> Tél : +33 (0)3 20 68 88 90
> Fax : +33 (0)3 20 68 90 81
> 45 Bvd du Général Leclerc
> 59100 ROUBAIX - FRANCE
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 



More information about the pve-devel mailing list