Am 23.03.2018 um 11:03 schrieb qemu-discuss-requ...@nongnu.org:
Send Qemu-discuss mailing list submissions to
        qemu-discuss@nongnu.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.nongnu.org/mailman/listinfo/qemu-discuss
or, via email, send a message with subject or body 'help' to
        qemu-discuss-requ...@nongnu.org

You can reach the person managing the list at
        qemu-discuss-ow...@nongnu.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Qemu-discuss digest..."


Today's Topics:

    1. qemu-kvm and qemu-system-x86_64 (Deneau, Tom)
    2. Re: qemu-kvm and qemu-system-x86_64 (Jakob Bohm)
    3. Re: How do -icount flags work in QEMU TCG (Arnabjyoti Kalita)
    4. Antw:  qemu-kvm and qemu-system-x86_64 (Steffen Wei?gerber)
    5. Re: How do -icount flags work in QEMU TCG (Peter Maydell)


----------------------------------------------------------------------

Message: 1
Date: Thu, 22 Mar 2018 17:29:15 +0000
From: "Deneau, Tom" <tom.den...@amd.com>
To: "qemu-discuss@nongnu.org" <qemu-discuss@nongnu.org>
Subject: [Qemu-discuss] qemu-kvm and qemu-system-x86_64
Message-ID:
        
<sn1pr12mb2414fb09c79921ec716689c59b...@sn1pr12mb2414.namprd12.prod.outlook.com>

Content-Type: text/plain; charset="us-ascii"

My situation: I want to run a KVM-accelerated qemu but I want to build 
everything involved from the latest sources and use those instead of any 
downloadable distro packages.  (This is on SLES12-SP3 although I don't think 
the distro matters).

I am able to build and install from
    * http://github.com/qemu/qemu using  ../configure 
--target-list=x86_64-softmmu --enable-kvm --prefix=/usr --sysconfdir=/etc
    * http://github.com/libvirt/libvirt  using ./configure --prefix=/usr 
--sysconfdir=/etc --localstatedir=/var

Before running make install,  I also removed the existing distro packages like 
libvirt, libvirt-client, qemu-kvm, etc.

My  question:  In the installed distro packages there was an executable, 
/usr/libexec/qemu-kvm
But after building and installing qemu from sources as above, I did not see any 
new qemu-kvm.
Is there some other repository I need to build from to get qemu-kvm?

I ask because I am starting vms using virsh define xyz.xml; virsh start xyz.  
And in the original .xml files I had the following under devices:
        <emulator>/usr/libexec/qemu-kvm</emulator>

Can I replace that with
    <emulator>/usr/local/bin/qemu-system-x86_64</emulator>
Yes, you can do it.
And given that I am already using
     <os>
         <type>hvm</type>
         <boot dev="hd"></boot>
     </os>

Will I get the same KVM acceleration as I was previously getting by using 
qemu-kvm?
qemu-kvm is hashed (/usr/bin/qemu-kvm)

more /usr/bin/qemu-kvm
#!/bin/sh

exec /usr/bin/qemu-system-x86_64 -machine accel=kvm "$@"
-- Tom Deneau




------------------------------

Message: 2
Date: Thu, 22 Mar 2018 21:39:02 +0100
From: Jakob Bohm <jb-gnumli...@wisemo.com>
To: qemu-discuss@nongnu.org
Subject: Re: [Qemu-discuss] qemu-kvm and qemu-system-x86_64
Message-ID: <5b8c94c2-06a9-3d49-b913-75fe7b46c...@wisemo.com>
Content-Type: text/plain; charset=utf-8; format=flowed

On 22/03/2018 18:29, Deneau, Tom wrote:
My situation: I want to run a KVM-accelerated qemu but I want to build 
everything involved from the latest sources and use those instead of any 
downloadable distro packages.  (This is on SLES12-SP3 although I don't think 
the distro matters).

I am able to build and install from
     * http://github.com/qemu/qemu using  ../configure 
--target-list=x86_64-softmmu --enable-kvm --prefix=/usr --sysconfdir=/etc
     * http://github.com/libvirt/libvirt  using ./configure --prefix=/usr 
--sysconfdir=/etc --localstatedir=/var

Before running make install,  I also removed the existing distro packages like 
libvirt, libvirt-client, qemu-kvm, etc.

My  question:  In the installed distro packages there was an executable, 
/usr/libexec/qemu-kvm
But after building and installing qemu from sources as above, I did not see any 
new qemu-kvm.
Is there some other repository I need to build from to get qemu-kvm?

I ask because I am starting vms using virsh define xyz.xml; virsh start xyz.  
And in the original .xml files I had the following under devices:
         <emulator>/usr/libexec/qemu-kvm</emulator>

Can I replace that with
     <emulator>/usr/local/bin/qemu-system-x86_64</emulator>

And given that I am already using
      <os>
          <type>hvm</type>
          <boot dev="hd"></boot>
      </os>

Will I get the same KVM acceleration as I was previously getting by using 
qemu-kvm?

-- Tom Deneau


For many years now, qemu-kvm has been a small shell script that prefixes
"--enable-kvm" to the other arguments.

Something like (guessing since its no longer on my system):

#!/bin/sh
exec qemu-system-x86_64 --enable-kvm "$@"

It was only a real program before kvm support was merged into standard
qemu.

Enjoy

Jakob


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


Reply via email to