1. 28 10月, 2009 7 次提交
    • N
      Send a RARP packet after migration. · 18995b98
      Nolan 提交于
      Currently, after a migration qemu sends a broadcast packet to update
      switches' MAC->port mappings.
      
      Unfortunately, it picks a random (constant) ethertype and crosses its
      fingers that no one else is using it.
      
      This patch causes it to send a RARP packet instead.  RARP was chosen for
      2 reasons.  One, it is always harmless, and will continue to be so even
      as new ethertypes are allocated.  Two, it is what VMware ESX sends, so
      people who write filtering rules for switches already know about it.
      
      I also changed the code to send SELF_ANNOUNCE_ROUNDS packets, instead of
      SELF_ANNOUNCE_ROUNDS + 1, and added a simple backoff scheme.
      
      Signed-off-by: Nolan Leake <nolan <at> sigbus.net>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      18995b98
    • J
      multiboot.S patch for old as(1) (was: Re: [Qemu-devel] Some OpenBSD/amd64 build fixes) · ff56954b
      Juergen Lock 提交于
      On Wed, Sep 23, 2009 at 10:55:02PM +0200, Juergen Lock wrote:
      > On Wed, Sep 23, 2009 at 09:31:16PM +0100, Laurence Tratt wrote:
      >[...]
      > >  then the above error doesn't occur, but
      > > pc-bios/optionrom/multiboot.S dies as follows:
      > >
      > >   $
      > >     AS    optionrom/multiboot.o
      > >   multiboot.S: Assembler messages:
      > >   multiboot.S:116: Error: `%es:-4(%edi)' is not a valid 16 bit base/index
      > > expression
      > >   $
      > >
      > > What little Intel assembler I ever knew has long since departed from my
      > > brain, so I don't know why that error occurs, nor what a fix might be.
      > >
      >  It occurs because of too old binutils (as(1) in this case), on FreeBSD
      > we now have a port for newer ones,
      > 	http://www.freshports.org/devel/binutils
      > so I depend on that and have the optionrom Makefile use the new as
      > like this: (the first change wrt CFLAGS is unrelated and has probably
      > been fixed in the meantime; it caused gmake to complain about
      > recursive use of CFLAGS.)
      >
      > Index: qemu/pc-bios/optionrom/Makefile
      > @@ -9,10 +9,13 @@
      >
      >  CFLAGS = -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
      >  CFLAGS += -I$(SRC_PATH)
      > -CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector,"")
      > +CFLAGS := $(CFLAGS) $(call cc-option, $(CFLAGS), -fno-stack-protector,"")
      >
      >  build-all: multiboot.bin
      >
      > +%.o: %.S
      > +	$(CC) -E $(CFLAGS) -o - -c $< |${LOCALBASE}/bin/as -V -Qy -o $@
      > +
      >  %.img: %.o
      >  	$(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<,"  Building $(TARGET_DIR)$@")
      >
      
      That patch didn't seem to help on OpenBSD so I now finally got around
      making another one that just emits the bytes of the offending insn
      instead so people can keep using old assemblers:
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      ff56954b
    • K
      raw/linux-aio: Also initialize POSIX AIO · d2e46345
      Kevin Wolf 提交于
      When using Linux AIO raw still falls back to POSIX AIO sometimes, so we should
      initialize it.
      
      Not initializing it happens to work if POSIX AIO is used by another drive, or
      if the format is not specified (probing the format uses POSIX AIO) or by pure
      luck (e.g. it doesn't seem to happen any more with qcow2 since we have re-added
      synchronous qcow2 functions).
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      d2e46345
    • K
      qcow2: Fix grow_refcount_table error handling · c5baaa48
      Kevin Wolf 提交于
      In case of failure, we haven't increased the refcount for the newly allocated
      cluster yet. Therefore we must not free the cluster or its refcount will become
      negative (and endless recursion is possible).
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      c5baaa48
    • P
      usb-linux: return USB_RET_STALL on -EPIPE · dcc7e25f
      Paul Bolle 提交于
      0) This is an attempt to get an issue in usb-linux.c, for which a patch
      was posted about a year ago, finally fixed.
      
      1) Mark Burkley submitted a "EHCI emulation module" for review in in
      October 2008 (see:
      http://lists.gnu.org/archive/html/qemu-devel/2008-10/msg01326.html). No
      EHCI emulation module was ever committed to qemu.
      
      2) Part of that (large) patch was a fix for a separate issue in
      usb-linux.c. Max Krasnyansky has ACK'ed that fix (see:
      http://lists.gnu.org/archive/html/qemu-devel/2008-11/msg00032.html).
      
      3) I already asked whether this fix was ready to be committed in last
      April (see:
      http://lists.gnu.org/archive/html/qemu-devel/2009-04/msg01763.html)
      
      4) Maybe submitting this fix as a separate patch (with a really long
      commit message but without a Signed-off-by) and cc-ing everbody involved
      will help if actually getting this issue fixed.
      
      Paul Bolle
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      dcc7e25f
    • S
      Makefile: Change make to be quiet again when doing nothing · 581d45f0
      Stefan Weil 提交于
      This patch makes make quiet again.
      
      There is already a similar patch from Juan Quintela,
      but maybe this shorter form is preferred.
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      581d45f0
    • S
      eepro100: Restructure code · 5fa9a0ae
      Stefan Weil 提交于
      This patch only moves about 150 lines of code from
      function eepro100_cu_command to a new function action_command.
      
      A goto statement was replaced by a for loop.
      
      There are no functional changes. Nor did I change comments
      starting with // (they will be removed by future patches).
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      5fa9a0ae
  2. 27 10月, 2009 7 次提交
  3. 25 10月, 2009 13 次提交
  4. 24 10月, 2009 4 次提交
  5. 23 10月, 2009 6 次提交
  6. 22 10月, 2009 3 次提交