qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] -machine vmport=off: Allow disabling of VMWare


From: Richard W.M. Jones
Subject: Re: [Qemu-devel] [PATCH] -machine vmport=off: Allow disabling of VMWare ioport emulation
Date: Tue, 20 May 2014 10:18:03 +0100
User-agent: Mutt/1.5.20 (2009-12-10)

On Tue, May 20, 2014 at 09:47:26AM +0100, Dr. David Alan Gilbert wrote:
> * Gerd Hoffmann (address@hidden) wrote:
> > >      /* init basic PC hardware */
> > > -    pc_basic_device_init(isa_bus, gsi, &rtc_state, &floppy, 
> > > xen_enabled(),
> > > -        0x4);
> > > +    pc_basic_device_init(isa_bus, gsi, &rtc_state, &floppy,
> > > +                         !qemu_opt_get_bool(qemu_get_machine_opts(), 
> > > "vmport",
> > > +                                            true) || xen_enabled(), 0x4);
> > 
> > pc_basic_device_init
> >   (isa_bus, gsi, &rtc_state, &floppy,
> >    !qemu_opt_get_bool(qemu_get_machine_opts(),"vmport",!xen_enabled()),
> >    0x4);
> > 
> > ?
> > 
> > This makes vmport switchable on xen too, with traditional behavior being
> > the default (off on xen, on otherwise).
> 
> Yes I guess that would work (although documenting it would be a little hairy);
> however, does anyone understand the reasons it's disabled in the Xen world?

It was disabled in this patch.  The commit message is saying that
vmport cannot work in Xen, but I'm not exactly clear why.

  commit 1611977c3d8fdbdac6090cbd1f5555cee4aed6d9
  Author: Anthony PERARD <address@hidden>
  Date:   Tue May 3 17:06:54 2011 +0100

    pc, Disable vmport initialisation with Xen.
    
    This is because there is not synchronisation of the vcpu register
    between Xen and QEMU, so vmport can't work properly.
    
    This patch introduces no_vmport parameter to pc_basic_device_init.
    
    Signed-off-by: Anthony PERARD <address@hidden>
    Signed-off-by: Alexander Graf <address@hidden>

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW



reply via email to

[Prev in Thread] Current Thread [Next in Thread]