1. 11 11月, 2014 6 次提交
    • C
      xen-hvm: Remove redundant variable 'xstate' · d208a85f
      Chen Gang 提交于
      In xen_hvm_change_state_handler(), we can pass 'opaque' with type cast
      to xen_main_loop_prepare() directly, there's no need to use additional
      variable for it.
      Signed-off-by: NChen Gang <gang.chen.5i5j@gmail.com>
      Acked-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      d208a85f
    • W
      coroutine-sigaltstack: Change jmp_buf to sigjmp_buf · 7f151e6f
      Willem Pinckaers 提交于
      This is a simple patch to change the type of old_env from jmp_buf
      to sigjmp_buf.  old_env is used by sigsetjmp and as such should be
      a sigjmp_buf.
      
      This fixes a stack_chk fail in a OSX 32bit build. Since at least on
      OSX sigjmp_buf is four bytes larger then a jmpbuf, resulting in an
      overflow in sigsetjmp. Due to variable reordering this overwrites
      the stack cookie.
      Signed-off-by: NWillem Pinckaers <willem_qemu@lekkertech.net>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Peter: I think I must have missed this one when I converted
             all the jmp_buf to sigjmp_buf in commit 6ab7e546.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      7f151e6f
    • C
      pc-bios: petalogix-s3adsp1800.dtb: Use 'xlnx, xps-ethernetlite-2.00.a' instead... · c21fd2c7
      Chen Gang 提交于
      pc-bios: petalogix-s3adsp1800.dtb: Use 'xlnx, xps-ethernetlite-2.00.a' instead of 'xlnx, xps-ethernetlite-2.00.b'
      
      For Linux upstream kernel (e.g. 3.17-rc7), the related compatible string
      'xlnx,xps-ethernetlite-2.00.a' is supported, but 'b' is not supported,
      so change qemu dtb file to match kernel driver.
      
      The related operation for qemu (after this patch):
      
         yum install libvirt
         yum install tunctl
         tunctl -b
         ip link set tap0 up
         brctl addif virbr0 tap0
      
         ./configure
         make
         ./microblaze-softmmu/qemu-system-microblaze -M petalogix-s3adsp1800 \
           -kernel ../linux-stable.microblaze/arch/microblaze/boot/linux.bin \
           -no-reboot -append "console=ttyUL0,115200 doreboot" -nographic \
           -net nic,vlan=0,model=xlnx.xps-ethernetlite,macaddr=00:16:35:AF:94:00 \
           -net tap,vlan=0,ifname=tap0,script=no,downscript=no
      
         in microblaze qemu bash (guest machine):
      
           ifconfig eth0 add 192.168.122.2 netmask 255.255.255.0
           ifconfig eth0 up
      
         Then can telnet 192.168.122.2 directly without password from the host
         machine.
      
      The related operation for generating new dtb:
      
         building Linux kernel firstly, then get dts tool "./scripts/dts/dts".
         "./scripts/dtc/dtc -I dtb -O dts  -o ../work.dts ../qemu/petalogix-s3adsp1800.dtb"
         edit work.dts (replace 'xlnx,xps-ethernetlite-2.00.b')
         "./scripts/dtc/dtc -I dts -O dtb  -o ..qemu/petalogix-s3adsp1800.dtb ../work.dts"
      
      (Since I am not quite sure whether can read this patch or not, I put the
      related dtb file in attachment, please check, thanks).
      Signed-off-by: NChen Gang <gang.chen.5i5j@gmail.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      c21fd2c7
    • M
      gdbstub: Add a missing case of signal number translation in gdbstub · f17b0690
      Martin Simmons 提交于
      While using qemu with gdb "target remote" to debug an application that uses
      fork and exec, the qemu process receives SIGSTOP every time the forked process
      terminates (sending SIGCHLD).
      
      This is caused by a missing call to gdb_signal_to_target in gdbstub.c, which
      is fixed by this patch:
      Signed-off-by: NMartin Simmons <martin@lispworks.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      f17b0690
    • Z
      numa: make 'info numa' take into account hotplugged memory · 5b009e40
      zhanghailiang 提交于
      When do memory hotplug, if there is numa node, we should add
      the memory size to the corresponding node memory size.
      
      It affects the result of hmp command "info numa".
      Reviewed-by: NIgor Mammedov <imammedo@redhat.com>
      Signed-off-by: Nzhanghailiang <zhang.zhanghailiang@huawei.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      5b009e40
    • P
      slirp/smbd: modify/set several parameters in generated smbd.conf · 7912d04b
      Peter Wu 提交于
      The file sharing module should not handle printers, so disable it.
      The options 'load printers' and 'printing' have been available since the
      beginning (May 1996, commit 0e8fd3398771da2f016d72830179507f3edda51b).
      Option 'disable spoolss' is available since Samba 2.0.4, commit
      de5f42c9d9172592779fa2504d44544e3b6b1c0d).
      
      Next, "socket address" was reported as deprecated, use a combination of
      "interfaces" and "bind interfaces only" instead (available since October
      1997, commit 79f4fb52c1ed56fd843f81b4eb0cdd2991d4d0f4).
      
      Override cache directory to avoid writing to a global directory. Option
      available since Samba 3.4.0, Jan 2009, commit
      19a05bf2f485023b11b41dfae3f6459847d55ef7.
      
      Set "usershare max shared=0" to prevent a global directory from being
      used. Option available since Samba 3.0.23, February 2006, commit
      5831715049f2d460ce42299963a5defdc160891b.
      
      The last option was introduced with Samba 3.4.0, but previously
      "state directory" was already added which exists in Samba 3.4.0. As
      unknown parameters are ignored (while printing a warning), it should be
      safe to add another option.
      Signed-off-by: NPeter Wu <peter@lekensteyn.nl>
      Cc: Jan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      7912d04b
  2. 05 11月, 2014 1 次提交
  3. 04 11月, 2014 1 次提交
  4. 03 11月, 2014 2 次提交
    • P
      Merge remote-tracking branch 'remotes/mjt/tags/pull-trivial-patches-2014-11-02' into staging · 7135781f
      Peter Maydell 提交于
      trivial patches for 2014-11-02
      
      # gpg: Signature made Sun 02 Nov 2014 11:54:43 GMT using RSA key ID A4C3D7DB
      # gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>"
      # gpg:                 aka "Michael Tokarev <mjt@corpit.ru>"
      # gpg:                 aka "Michael Tokarev <mjt@debian.org>"
      
      * remotes/mjt/tags/pull-trivial-patches-2014-11-02: (23 commits)
        vdi: wrapped uuid_unparse() in #ifdef
        tap: fix possible fd leak in net_init_tap
        tap: do not close(fd) in net_init_tap_one
        target-i386: Remove unused model_features_t struct
        tap_int.h: remove repeating NETWORK_SCRIPT defines
        os-posix: reorder parent notification for -daemonize
        pidfile: stop making pidfile error a special case
        os-posix: replace goto again with a proper loop
        os-posix: use global daemon_pipe instead of cryptic fds[1]
        dump: Fix dump-guest-memory termination and use-after-close
        virtio-9p-proxy: improve error messages in connect_namedsocket()
        virtio-9p-proxy: fix error return in proxy_init()
        virtio-9p-proxy: Fix sockfd leak
        target-tricore: check return value before using it
        net/slirp: specify logbase for smbd
        Revert "os-posix: report error message when lock file failed"
        util: Improve os_mem_prealloc error message
        sparse: fix build
        target-arm: A64: remove redundant store
        target-xtensa: mark XtensaConfig structs as unused
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7135781f
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · f67d23b1
      Peter Maydell 提交于
      The last round of patches for soft freeze.  Includes ivshmem bugfixes,
      megasas 2108 emulation, and other small patches here and there.
      
      # gpg: Signature made Fri 31 Oct 2014 17:17:54 GMT using RSA key ID 78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini/tags/for-upstream: (35 commits)
        virtio-scsi: fix dataplane
        ivshmem: use error_report
        ivshmem: Fix fd leak on error
        ivshmem: Fix potential OOB r/w access
        ivshmem: validate incoming_posn value from server
        ivshmem: Check ivshmem_read() size argument
        i386: fix breakpoints handling in icount mode
        kvm_stat: Add powerpc support
        kvm_stat: Abstract ioctl numbers
        kvm_stat: Rework platform detection
        kvm_stat: Fix the non-x86 exit reasons
        kvm_stat: Only consider online cpus
        virtio-scsi: Fix num_queue input validation
        scsi: devirtualize unrealize of SCSI devices
        virtio-scsi: Fix memory leak when realize failed
        iscsi: Refuse to open as writable if the LUN is write protected
        kvmvapic: patch_instruction fix
        vl.c: Fix Coverity complaining for vmstate_dump_file
        Add skip_dump flag to ignore memory region during dump
        -machine vmport=off: Allow disabling of VMWare ioport emulation
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f67d23b1
  5. 02 11月, 2014 24 次提交
  6. 01 11月, 2014 6 次提交