1. 18 6月, 2019 1 次提交
  2. 17 6月, 2019 3 次提交
    • M
      tests/rebuild-expected-aml.sh: blow out difflist · 5f6b3561
      Michael S. Tsirkin 提交于
      As expected files have been updated, make sure we
      do not forget to remove them from the allowed
      diff list.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      5f6b3561
    • M
      q35: update DSDT · 500eb6db
      Michael S. Tsirkin 提交于
      update expected files and drop them from allowed diff list.
      
      Fixes: 4a441836 ("q35: fix mmconfig and PCI0._CRS")
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      500eb6db
    • G
      q35: fix mmconfig and PCI0._CRS · 4a441836
      Gerd Hoffmann 提交于
      This patch changes the handling of the mmconfig area.  Thanks to the
      pci(e) expander devices we already have the logic to exclude address
      ranges from PCI0._CRS.  We can simply add the mmconfig address range
      to the list get it excluded as well.
      
      With that in place we can go with a fixed pci hole which covers the
      whole area from the end of (low) ram to the ioapic.
      
      This will make the whole logic alot less fragile.  No matter where the
      firmware places the mmconfig xbar, things should work correctly.  The
      guest also gets a bit more PCI address space (seabios boot):
      
          # cat /proc/iomem
          [ ... ]
          7ffdd000-7fffffff : reserved
          80000000-afffffff : PCI Bus 0000:00            <<-- this is new
          b0000000-bfffffff : PCI MMCONFIG 0000 [bus 00-ff]
            b0000000-bfffffff : reserved
          c0000000-febfffff : PCI Bus 0000:00
            f8000000-fbffffff : 0000:00:01.0
          [ ... ]
      
      So this is a guest visible change.
      
      Cc: László Érsek <lersek@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NIgor Mammedov <imammedo@redhat.com>
      Message-Id: <20190607073429.3436-1-kraxel@redhat.com>
      4a441836
  3. 14 6月, 2019 9 次提交
  4. 13 6月, 2019 18 次提交
  5. 12 6月, 2019 9 次提交
    • M
      Supply missing header guards · f91005e1
      Markus Armbruster 提交于
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190604181618.19980-5-armbru@redhat.com>
      f91005e1
    • M
      Clean up a few header guard symbols · 37677d7d
      Markus Armbruster 提交于
      Commit 58ea30f5 "Clean up header guards that don't match their file
      name" messed up contrib/elf2dmp/qemu_elf.h and
      tests/migration/migration-test.h.
      
      It missed target/cris/opcode-cris.h and
      tests/uefi-test-tools/UefiTestToolsPkg/Include/Guid/BiosTablesTest.h
      due to the scripts/clean-header-guards.pl bug fixed in the previous
      commit.
      
      Commit a8b991b5 "Clean up ill-advised or unusual header guards"
      missed include/hw/xen/io/ring.h for the same reason.
      
      Commit 3979fca4 "disas: Rename include/disas/bfd.h back to
      include/disas/dis-asm.h" neglected to update the guard symbol for the
      rename.
      
      Commit a331c6d7 "semihosting: implement a semihosting console"
      created include/hw/semihosting/console.h with an ill-advised guard
      symbol.
      
      Clean them up.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190604181618.19980-4-armbru@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Tested-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      37677d7d
    • M
      Normalize position of header guard · 0553d895
      Markus Armbruster 提交于
      This is the common header guard idiom:
      
          /*
           * File comment
           */
      
          #ifndef GUARD_SYMBOL_H
          #define GUARD_SYMBOL_H
      
          ... actual contents ...
      
          #endif
      
      A few of our headers have some #include before the guard.
      target/tilegx/spr_def_64.h has #ifndef __DOXYGEN__ outside the guard.
      A few more have the #define elsewhere.
      
      Change them to match the common idiom.  For spr_def_64.h, that means
      dropping #ifndef __DOXYGEN__.  While there, rename guard symbols to
      make scripts/clean-header-guards.pl happy.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190604181618.19980-2-armbru@redhat.com>
      [Rebased with conflicts resolved automatically]
      0553d895
    • M
      Include qemu-common.h exactly where needed · a8d25326
      Markus Armbruster 提交于
      No header includes qemu-common.h after this commit, as prescribed by
      qemu-common.h's file comment.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190523143508.25387-5-armbru@redhat.com>
      [Rebased with conflicts resolved automatically, except for
      include/hw/arm/xlnx-zynqmp.h hw/arm/nrf51_soc.c hw/arm/msf2-soc.c
      block/qcow2-refcount.c block/qcow2-cluster.c block/qcow2-cache.c
      target/arm/cpu.h target/lm32/cpu.h target/m68k/cpu.h target/mips/cpu.h
      target/moxie/cpu.h target/nios2/cpu.h target/openrisc/cpu.h
      target/riscv/cpu.h target/tilegx/cpu.h target/tricore/cpu.h
      target/unicore32/cpu.h target/xtensa/cpu.h; bsd-user/main.c and
      net/tap-bsd.c fixed up]
      a8d25326
    • M
      Include qemu/module.h where needed, drop it from qemu-common.h · 0b8fa32f
      Markus Armbruster 提交于
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190523143508.25387-4-armbru@redhat.com>
      [Rebased with conflicts resolved automatically, except for
      hw/usb/dev-hub.c hw/misc/exynos4210_rng.c hw/misc/bcm2835_rng.c
      hw/misc/aspeed_scu.c hw/display/virtio-vga.c hw/arm/stm32f205_soc.c;
      ui/cocoa.m fixed up]
      0b8fa32f
    • M
      qemu-common: Move qemu_isalnum() etc. to qemu/ctype.h · 856dfd8a
      Markus Armbruster 提交于
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190523143508.25387-3-armbru@redhat.com>
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      856dfd8a
    • P
      BootLinuxConsoleTest: Run kerneltests BusyBox on Malta · 89368673
      Philippe Mathieu-Daudé 提交于
      This tests boots a Linux kernel on a Malta machine up to a
      busybox shell on the serial console. Few commands are executed
      before halting the machine (via reboot).
      
      We use the initrd cpio image from the kerneltests project:
      https://kerneltests.org/
      
      If MIPS is a target being built, "make check-acceptance" will
      automatically include this test by the use of the "arch:mips" tags.
      
      Alternatively, this test can be run using:
      
        $ avocado --show=console run -t arch:mips tests/acceptance/boot_linux_console.py
        [...]
        console: Boot successful.
        [...]
        console: / # uname -a
        console: Linux buildroot 4.5.0-2-4kc-malta #1 Debian 4.5.5-1 (2016-05-29) mips GNU/Linux
        console: / # reboot
        console: / # reboot: Restarting system
      Signed-off-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-Id: <20190520231910.12184-4-f4bug@amsat.org>
      Acked-by: NAleksandar Markovic <amarkovic@wavecomp.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      89368673
    • P
      BootLinuxConsoleTest: Test nanoMIPS kernels on the I7200 CPU · f375ad6a
      Philippe Mathieu-Daudé 提交于
      Similar to the x86_64/pc test, it boots a Linux kernel on a Malta
      machine and verify the serial is working.
      
      Use the documentation added in commit f7d257cb to test
      nanoMIPS kernels and the I7200 CPU.
      
      This test can be run using:
      
        $ avocado --show=console run -t arch:mipsel tests/acceptance/boot_linux_console.py
        console: [    0.000000] Linux version 4.15.18-00432-gb2eb9a8b (emubuild@mipscs563) (gcc version 6.3.0 (Codescape GNU Tools 2018.04-02 for nanoMIPS Linux)) #1 SMP Wed Jun 27 11:10:08 PDT 2018
        console: [    0.000000] GCRs appear to have been moved (expected them at 0x1fbf8000)!
        console: [    0.000000] GCRs appear to have been moved (expected them at 0x1fbf8000)!
        console: [    0.000000] CPU0 revision is: 00010000 (MIPS GENERIC QEMU)
        console: [    0.000000] MIPS: machine is mti,malta
        console: [    0.000000] Determined physical RAM map:
        console: [    0.000000]  memory: 08000000 @ 00000000 (usable)
        console: [    0.000000] earlycon: ns16550a0 at I/O port 0x3f8 (options '38400n8')
        console: [    0.000000] bootconsole [ns16550a0] enabled
        console: [    0.000000] User-defined physical RAM map:
        console: [    0.000000]  memory: 10000000 @ 00000000 (usable)
        console: [    0.000000] Initrd not found or empty - disabling initrd
        console: [    0.000000] MIPS CPS SMP unable to proceed without a CM
        console: [    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
        console: [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
        console: [    0.000000] This processor doesn't support highmem. -262144k highmem ignored
        console: [    0.000000] Zone ranges:
        console: [    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
        console: [    0.000000]   HighMem  empty
        console: [    0.000000] Movable zone start for each node
        console: [    0.000000] Early memory node ranges
        console: [    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
        console: [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
        console: [    0.000000] random: get_random_bytes called from start_kernel+0x60/0x2f0 with crng_init=0
        console: [    0.000000] percpu: Embedded 16 pages/cpu @(ptrval) s36620 r8192 d20724 u65536
        console: [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
        console: [    0.000000] Kernel command line: printk.time=0 mem=256m@@0x0 console=ttyS0 earlycon
      Signed-off-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-Id: <20190520231910.12184-3-f4bug@amsat.org>
      Acked-by: NAleksandar Markovic <amarkovic@wavecomp.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      f375ad6a
    • P
      BootLinuxConsoleTest: Test the SmartFusion2 board · 77ead6b8
      Philippe Mathieu-Daudé 提交于
      Similar to the x86_64/pc test, it boots a Linux kernel on an
      Emcraft board and verify the serial is working.
      
      If ARM is a target being built, "make check-acceptance" will
      automatically include this test by the use of the "arch:arm" tags.
      
      Alternatively, this test can be run using:
      
        $ avocado run -t arch:arm tests/acceptance
        $ avocado run -t machine:emcraft_sf2 tests/acceptance
      
      Based on the recommended test setup from Subbaraya Sundeep:
      https://lists.gnu.org/archive/html/qemu-devel/2017-05/msg03810.htmlSigned-off-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-Id: <20190520220635.10961-3-f4bug@amsat.org>
      Reviewed-by: NAlistair Francis <alistair.francis@wdc.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      77ead6b8