Index: postlfs/virtualization/qemu-systemd.xml
===================================================================
--- postlfs/virtualization/qemu-systemd.xml	(revision cb0bbd277bf2cc9dc86d9cbc127ec4974b54061f)
+++ postlfs/virtualization/qemu-systemd.xml	(revision 83f6c770f5d0b55096b417f4fc5fb23412c1cc51)
@@ -7,8 +7,8 @@
   <!ENTITY qemu-download-http "http://wiki.qemu.org/download/qemu-&qemu-version;.tar.bz2">
   <!ENTITY qemu-download-ftp  " ">
-  <!ENTITY qemu-md5sum        "2fab3ea4460de9b57192e5b8b311f221">
-  <!ENTITY qemu-size          "24 MB">
-  <!ENTITY qemu-buildsize     "291 MB">
-  <!ENTITY qemu-time          "1.4 SBU">
+  <!ENTITY qemu-md5sum        "f469f2330bbe76e3e39db10e9ac4f8db">
+  <!ENTITY qemu-size          "25 MB">
+  <!ENTITY qemu-buildsize     "419 MB (with tests)">
+  <!ENTITY qemu-time          "2.4 SBU (with tests)">
 ]>
 
@@ -79,11 +79,16 @@
       <xref linkend="curl"/>,
       <xref linkend="cyrus-sasl"/>,
+      <xref linkend="gnutls"/>,
       <xref linkend="gtk2"/>,
       <xref linkend="gtk3"/>,
       <xref linkend="libusb"/>,
+      <xref linkend="libgcrypt"/>,
       <xref linkend="lzo"/>,
+      <xref linkend="nettle"/>,
       <xref linkend="nss"/> (for libcacard.so),
-      <xref linkend="mesalib"/>, and
+      <xref linkend="mesalib"/>, 
+      <xref linkend="sdl"/>, and
       <xref linkend="vte"/>
+      <ulink url="http://www.libssh2.org">libssh2</ulink>
     </para>
 
@@ -151,16 +156,37 @@
     commands:</para>
 
-<screen><userinput>./configure --prefix=/usr \
-            --sysconfdir=/etc \
-            --docdir=/usr/share/doc/qemu-&qemu-version; \
-            --target-list=x86_64-softmmu &amp;&amp;
+      <note><para>Qemu is capable of running many targets. The build process
+      is also capable of building multiple targets at one time in a
+      comma delimited list assigned to <option>--target-list</option>. Run
+      <command>./configure --help</command> to get a complete list of
+      available targets.</para></note>
+
+<screen><userinput>if [ $(uname -m) = i686 ]; then
+   QEMU_ARCH=i386-softmmu
+else
+   QEMU_ARCH=x86_64-softmmu
+fi
+
+mkdir -vp build &amp;&amp;
+cd        build &amp;&amp;
+
+../configure --prefix=/usr          \
+             --sysconfdir=/etc   \
+             --target-list=$QEMU_ARCH  \
+             --audio-drv-list=alsa     \
+             --docdir=/usr/share/doc/qemu-&qemu-version; &amp;&amp;
+
+unset QEMU_ARCH &amp;&amp;
+
 make</userinput></screen>
 
-    <para>To run the built in tests, run <command>make V=1 check</command>.</para>
+    <para>To run the built in tests, run <command>make V=1 check</command>.
+    One test is known to fail.</para>
 
     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
 
 <screen role="root"><userinput>make install &amp;&amp;
-[ -e  /usr/lib/libcacard.so ] &amp;&amp; chmod -v 755 /usr/lib/libcacard.so</userinput></screen>
+[ -e  /usr/lib/libcacard.so ] &amp;&amp;
+chmod -v 755 /usr/lib/libcacard.so</userinput></screen>
 
     <para>
@@ -193,7 +219,7 @@
 
     <para>For convenience you may want to create a symbolic link to run
-    <command>qemu-system-x86_64</command>:</para>
-
-    <screen role="root"><userinput>ln -sv qemu-system-x86_64 /usr/bin/qemu</userinput></screen>
+    The installed program. For instance:</para>
+
+<screen role="root"><userinput>ln -sv qemu-system-`uname -m` /usr/bin/qemu</userinput></screen>
     </note>
 
@@ -203,11 +229,6 @@
     <title>Command Explanations</title>
 
-    <para><parameter>--target-list=x86_64-softmmu</parameter>: This switch
-    limits the build target to the x86_64 architecture.  For other 
-    hardware emulation see the --target-list list in <command>configure</command>'s
-    help output.  Omitting this option will build all architectures.</para>
-
     <para>
-      <option>--audio-drv-list=alsa</option>: This switch sets the audio driver
+      <parameter>--audio-drv-list=alsa</parameter>: This switch sets the audio driver
       to ALSA. For other drivers see the --audio-drv-list list in
       <command>configure</command>'s help output. The default audio driver is
@@ -230,5 +251,6 @@
     <note><para>The following instructions assume you have created the optional
     symbolic link, <userinput>qemu</userinput>.  Additionally, you must run
-    <userinput>qemu</userinput> from an X Window System based terminal.</para></note>
+    <userinput>qemu</userinput> from an X Window System based terminal.
+    (either locally or over ssh).</para></note>
 
     <para>To install an operating system, download an iso of your choice or use
@@ -257,6 +279,76 @@
 <screen><userinput>qemu -enable-kvm vdisk.img -m 384</userinput></screen>
 
-    <para>To add networking to the instance add "-net nic -net user" to the
-    command above.  qemu provides a DHCP server for the VM and, depending on
+    <para>You may have a problem with <parameter>--enable-kvm</parameter>. Also,
+    you may want to define audio and video drivers, the number of cpu cores, and
+    the number of threads. An alternative command to install the operating system is (see qemu
+    man page for parameters definitions):</para>
+
+<screen><userinput>qemu -enable-kvm             \
+    -cdrom /home/fernando/ISO/linuxmint-17.1-mate-32bit.iso \
+    -boot order=d             \
+    -m 1G,slots=3,maxmem=4G \
+    -machine smm=off        \
+    -soundhw es1370         \
+    -cpu host               \
+    -smp cores=4,threads=2  \
+    -vga std                \
+    vdisk.img</userinput></screen>
+
+    <para>One parameter not appearing in the qemu man page is
+    <parameter>-machine smm=off</parameter>, and it used to allow
+    <parameter>-enable-kvm</parameter> in some systems. In order to run the
+    machine, you can alternatively issue:</para>
+
+<screen><userinput>qemu -enable-kvm          \
+    -machine smm=off             \
+    -boot order=d                \
+    -m 1G,slots=3,maxmem=4G      \
+    -soundhw es1370              \
+    -cpu host                    \
+    -smp cores=4,threads=2       \
+    -vga vmware                  \
+    -hda vdisk.img</userinput></screen>
+
+    <para>Sometimes, you want the machine to have different screen sizes than
+    the ones natively offered by the virtual graphics card. The example below is
+    for the qemu vmware graphics card, which uses
+    <xref linkend="xorg-vmware-driver"/> and is set to give the maximum screen size
+    of 1600x900. As the <systemitem class="username">root</systemitem> user,
+    issue the following:</para>
+
+<screen role="root"><userinput>cat &gt; /usr/share/X11/xorg.conf.d/20-vmware.conf &lt;&lt; "EOF"
+<literal>Section        "Monitor"
+   Identifier     "Monitor0"
+   # cvt 1600 900
+   # 1600x900 59.95 Hz (CVT 1.44M9) hsync:55.99 kHz; pclk: 118.25 MHz
+   Modeline       "1600x900" 118.25 1600 1696 1856 2112  900 903 908 934 -hysnc +vsync
+   Option         "PreferredMode" "1600x900"
+   HorizSync      1-200
+   VertRefresh    1-200
+EndSection
+
+Section           "Device"
+   Identifier     "VMWare SVGA II Adapter"
+   Option         "Monitor" "Default"
+   Driver         "vmware"
+EndSection
+
+Section           "Screen"
+   Identifier     "Default Screen"
+   Device         "VMWare SVGA II Adapter"
+   Monitor        "Monitor0"
+
+   SubSection     "Display"
+      Depth       24
+      Modes       "1600x900" "1440x900" "1366x768" "1280x720" "800x480"
+   EndSubSection
+EndSection </literal>
+EOF </userinput></screen>
+
+    <para>New sizes will be available besides the native ones. You need to
+    restart X in order to have the new sizes available.</para>
+
+    <para><!--To add networking to the instance add "-net nic -net user" to the
+    command above.--> qemu provides a DHCP server for the VM and, depending on
     the client system, sets up networking though the host.</para>
 
@@ -268,5 +360,5 @@
     <itemizedlist spacing="compact">
       <listitem>
-        <para>Set up bridging using <xref linkend="network-bridge"/>.</para>
+        <para>Set up bridging using <xref linkend="bridgeutils"/>.</para>
       </listitem>
 
@@ -375,9 +467,12 @@
       <seglistitem>
         <seg>
+          ivshmem-client,
+          ivshmem-server,
+          qemu (symlink),
           qemu-ga,
           qemu-img,
           qemu-io,
           qemu-nbd,
-          qemu-system-x86_64,
+          qemu-system-&lt;arch&gt;,
           virtfs-proxy-helper, and
           vscclient
@@ -385,8 +480,5 @@
         <seg>libcacard.so</seg>
         <seg>
-          /etc/qemu,
-          /usr/include/cacard,
-          /usr/lib/qemu,
-          /usr/share/qemu, and
+          /etc/qemu, and
           /usr/share/doc/qemu-&qemu-version;
         </seg>
