Skip to content
Snippets Groups Projects
  1. Mar 13, 2014
  2. Mar 12, 2014
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/afaerber/tags/prep-for-upstream' into staging · 750036a8
      Peter Maydell authored
      
      PReP machine and devices
      
      * ppc_rom.bin update and submodule
      
      # gpg: Signature made Wed 12 Mar 2014 17:32:40 GMT using RSA key ID 3E7E013F
      # gpg: Good signature from "Andreas Färber <afaerber@suse.de>"
      # gpg:                 aka "Andreas Färber <afaerber@suse.com>"
      
      * remotes/afaerber/tags/prep-for-upstream:
        prep: Update ppc_rom.bin
        Add OpenHack'Ware submodule
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      750036a8
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/stefanha/tags/net-pull-request' into staging · 2f23e9ae
      Peter Maydell authored
      
      Net patches
      
      # gpg: Signature made Wed 12 Mar 2014 13:48:20 GMT using RSA key ID 81AB73C8
      # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>"
      # gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8
      
      * remotes/stefanha/tags/net-pull-request:
        tap: avoid deadlocking rx
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      2f23e9ae
    • Andreas Färber's avatar
      prep: Update ppc_rom.bin · 21143b61
      Andreas Färber authored
      
      Functionally, this is a revert of Jocelyn's r3309 /
      55aa45dd (Quickly hack PowerPC BIOS
      able to boot on CDROM again.), for which we do not have the sources.
      
      Therefore the sources used are v0.4.1 plus pc-bios/ohw.diff plus a
      workaround turning IDE errors into warnings.
      
      Signed-off-by: default avatarAndreas Färber <andreas.faerber@web.de>
      21143b61
    • Andreas Färber's avatar
      Add OpenHack'Ware submodule · fd3ece25
      Andreas Färber authored
      
      This replaces the ohw.diff file on top of v0.4.1.
      
      Signed-off-by: default avatarAndreas Färber <andreas.faerber@web.de>
      fd3ece25
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging · a822837d
      Peter Maydell authored
      
      Tracing pull request
      
      # gpg: Signature made Wed 12 Mar 2014 13:20:10 GMT using RSA key ID 81AB73C8
      # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>"
      # gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8
      
      * remotes/stefanha/tags/tracing-pull-request:
        trace: Fix build warnings for Win32 build
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      a822837d
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/kraxel/tags/pull-misc-1' into staging · 01ac27ce
      Peter Maydell authored
      
      Docs: Introduce multiport serial support in qemupciserial.inf.
      
      # gpg: Signature made Wed 12 Mar 2014 09:35:55 GMT using RSA key ID D3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
      
      * remotes/kraxel/tags/pull-misc-1:
        Docs: Introduce multiport serial support in qemupciserial.inf.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      01ac27ce
    • Peter Maydell's avatar
      trace: Fix build warnings for Win32 build · 84f3fe1b
      Peter Maydell authored
      
      The Win32 build warns about trace/control-internal.h:
      
      warning: 'trace_event_count' declared inline after being called
      
      Fix this by simply reordering trace_event_id() and
      trace_event_count().
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarStefan Weil <sw@weilnetz.de>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      84f3fe1b
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/kiszka/queues/slirp' into staging · 2c3445bb
      Peter Maydell authored
      
      * remotes/kiszka/queues/slirp:
        slirp smb with modern win guests when samba is also running on host
        qemu/slirp: Fix SMB security configuration on newer samba versions
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      2c3445bb
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/mcayland/qemu-sparc' into staging · 7602e3e4
      Peter Maydell authored
      
      * remotes/mcayland/qemu-sparc:
        target-sparc: Add and use CPU_FEATURE_CASA
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      7602e3e4
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging · 613c12ec
      Peter Maydell authored
      
      * remotes/qmp-unstable/queue/qmp:
        tests: test-qmp-commands: Fix double free
        qapi script: do not add "_" for every capitalized char in enum
        qapi script: do not allow string discriminator
        qapi: convert BlockdevOptions to use enum discriminator
        qapi script: support enum type as discriminator in union
        qapi script: use same function to generate enum string
        qapi script: code move for generate_enum_name()
        qapi script: check correctness of union
        qapi script: remember line number in schema parsing
        qapi script: add check for duplicated key
        qapi script: remember explicitly defined enum values
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      613c12ec
    • Miki Mishael's avatar
      Docs: Introduce multiport serial support in qemupciserial.inf. · dc9528fd
      Miki Mishael authored
      
            Support for pci-serial-2x and pci-serial-4x
            was added to the inf file.
            Standard Windows driver mf.sys used to
            split single function device into per-port nodes.
      
      Signed-off-by: default avatarMiki Mishael <mmishael@redhat.com>
      Signed-off-by: default avatarDmitry Fleytman <dfleytma@redhat.com>
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      dc9528fd
    • Stefan Hajnoczi's avatar
      tap: avoid deadlocking rx · 68e5ec64
      Stefan Hajnoczi authored
      
      The net subsystem has a control flow mechanism so peer NetClientStates
      can tell each other to stop sending packets.  This is used to stop
      monitoring the tap file descriptor for incoming packets if the guest rx
      ring has no spare buffers.
      
      There is a corner case when tap_can_send() is true at the beginning of
      an event loop iteration but becomes false before the tap_send() fd
      handler is invoked.
      
      tap_send() will read the packet from the tap file descriptor and attempt
      to send it.  The net queue will hold on to the packet and return 0,
      indicating that further I/O is not possible.  tap then stops monitoring
      the file descriptor for reads.
      
      This is unlike the normal case where tap_can_send() is the same before
      and during the event loop iteration.  The event loop would simply not
      monitor the file descriptor if tap_can_send() returns true.  Upon next
      iteration it would check tap_can_send() again and begin monitoring if we
      can send.
      
      The deadlock happens because tap_send() explicitly disabled read_poll.
      This is done with the expectation that the peer will call
      qemu_net_queue_flush().  But hw/net/virtio-net.c does not monitor
      vm_running transitions and issue the flush.  Hence we're left with a
      broken tap device.
      
      Cc: qemu-stable@nongnu.org
      Reported-by: default avatarNeil Skrypuch <neil@tembosocial.com>
      Tested-by: default avatarNeil Skrypuch <neil@tembosocial.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      68e5ec64
    • Michael Tokarev's avatar
      slirp smb with modern win guests when samba is also running on host · 5c1e1890
      Michael Tokarev authored
      
      After numerous reports that -smb (or -netdev user,smb=foo) not working
      with modern windows (win7 and vista are reported as non-working), I
      started digging myself.  And found that indeed it doesn't work, and
      why.
      
      The thing is that modern win tries to connect to port 445 (microsoft-ds)
      first, and if that fails, it falls back to old port 139 (netbios-ssn).
      
      slirp code in qemu only redirects port 139, it does not touch port 445.
      
      So the prob is that if samba is also running on the host, guest will try
      to communicate using port 445, and that will succed, but ofcourse guest
      will not talk with our samba but with samba running on the host.
      
      If samba is not running on the host, guest will fall back to port 139,
      and will reach the redirecting rule and qemu will spawn smbd correctly.
      
      The solution is to redirect both ports (139 and 445), and the fix is
      a one-liner, adding second call to slirp_add_exec() at the end of
      net/slirp.c:slirp_smb() function (provided below).
      
      But it looks like that is not a proper fix really, since in theory
      we should redirect both ports to the SAME, single samba instance,
      but I'm not sure this is possible with slirp.  Well, even if two
      smbd processes will be run on the same config dir, it should not
      be a problem.
      
      The one-liner (not exactly 1 since it touches previous line too) is like
      this:
      
      Signed-off-By: default avatarMichael Tokarev <mjt@tls.msk.ru>
      
      Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
      5c1e1890
    • Michael Buesch's avatar
      qemu/slirp: Fix SMB security configuration on newer samba versions · c2804ee6
      Michael Buesch authored
      
      The smb.conf automatically generated by qemu's -smb option fails on current
      samba, because smbd rejects the security=share option with the following warning:
      
      >   WARNING: Ignoring invalid value 'share' for parameter 'security'
      
      Which makes it fall back to security=user without guest login.
      This results in being unable to login to the samba server from the guest OS.
      
      This fixes it by selecting 'user' explicitly and mapping
      unknown users to guest logins.
      
      Signed-off-by: default avatarMichael Buesch <m@bues.ch>
      Reviewed-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
      c2804ee6
    • Sebastian Huber's avatar
      target-sparc: Add and use CPU_FEATURE_CASA · 16c358e9
      Sebastian Huber authored
      
      The LEON3 processor has support for the CASA instruction which is
      normally only available for SPARC V9 processors.  Binutils 2.24
      and GCC 4.9 will support this instruction for LEON3.  GCC uses it to
      generate C11 atomic operations.
      
      The CAS synthetic instruction uses an ASI of 0x80.  If TARGET_SPARC64 is
      not defined use a supervisor data load/store for an ASI of 0x80 in
      helper_ld_asi()/helper_st_asi().  The supervisor data load/store was
      choosen according to the LEON3 documentation.
      
      The ASI 0x80 is defined in the SPARC V9 manual, Table 12—Address Space
      Identifiers (ASIs).  Here we have: 0x80, ASI_PRIMARY, Unrestricted
      access, Primary address space.
      
      Tested with the following program:
      
        #include <assert.h>
        #include <stdatomic.h>
      
        void test(void)
        {
          atomic_int a;
          int e;
          _Bool b;
      
          atomic_store(&a, 1);
          e = 1;
          b = atomic_compare_exchange_strong(&a, &e, 2);
          assert(b);
          assert(atomic_load(&a) == 2);
      
          atomic_store(&a, 3);
          e = 4;
          b = atomic_compare_exchange_strong(&a, &e, 5);
          assert(!b);
          assert(atomic_load(&a) == 3);
        }
      
      Tested also on a NGMP board with a LEON4 processor.
      
      Reviewed-by: default avatarFabien Chouteau <chouteau@adacore.com>
      Reviewed-by: default avatarAndreas Färber <afaerber@suse.de>
      Tested-by: default avatarMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Reviewed-by: default avatarRichard Henderson <rth@twiddle.net>
      Signed-off-by: default avatarSebastian Huber <sebastian.huber@embedded-brains.de>
      Signed-off-by: default avatarMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      16c358e9
  3. Mar 11, 2014
Loading