Skip to content
Snippets Groups Projects
  1. Nov 03, 2023
    • Song Gao's avatar
      linux-user/loongarch64: setup_sigframe() set 'end' context size 0 · 01714eda
      Song Gao authored
      See:
        https://github.com/torvalds/linux/blob/master/arch/loongarch/kernel/signal.c
      
      
      
      The kernel setup_sigcontext() set end context size 0.
      
      Signed-off-by: default avatarSong Gao <gaosong@loongson.cn>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20231101030816.2353416-4-gaosong@loongson.cn>
      01714eda
    • Song Gao's avatar
      linux-user/loongarch64: Fix setup_extcontext alloc wrong fpu_context size · 420756c2
      Song Gao authored
      See:
       https://github.com/torvalds/linux/blob/master/arch/loongarch/kernel/signal.c
      
      
      
      The alloc size is sizeof(struct target_fpu_context).
      
      Signed-off-by: default avatarSong Gao <gaosong@loongson.cn>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20231101030816.2353416-3-gaosong@loongson.cn>
      420756c2
    • Richard Henderson's avatar
      linux-user/loongarch64: Use traps to track LSX/LASX usage · 91ffd93b
      Richard Henderson authored
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20231101030816.2353416-2-gaosong@loongson.cn>
      Signed-off-by: default avatarSong Gao <gaosong@loongson.cn>
      91ffd93b
    • Song Gao's avatar
      target/loongarch: Support 4K page size · 1d832c19
      Song Gao authored
      
      The LoongArch kernel supports 4K page size.
      Change TARGET_PAGE_BITS to 12.
      
      Signed-off-by: default avatarSong Gao <gaosong@loongson.cn>
      Message-Id: <20231023024059.3858349-1-gaosong@loongson.cn>
      1d832c19
    • Song Gao's avatar
      target/loongarch: Implement query-cpu-model-expansion · 31f694b9
      Song Gao authored
      
      Add support for the query-cpu-model-expansion QMP command to LoongArch.
      We support query the cpu features.
      
        e.g
          la464 and max cpu support LSX/LASX, default enable,
          la132 not support LSX/LASX.
      
          1. start with '-cpu max,lasx=off'
      
          (QEMU) query-cpu-model-expansion type=static  model={"name":"max"}
          {"return": {"model": {"name": "max", "props": {"lasx": false, "lsx": true}}}}
      
          2. start with '-cpu la464,lasx=off'
          (QEMU) query-cpu-model-expansion type=static  model={"name":"la464"}
          {"return": {"model": {"name": "max", "props": {"lasx": false, "lsx": true}}}
      
          3. start with '-cpu la132,lasx=off'
          qemu-system-loongarch64: can't apply global la132-loongarch-cpu.lasx=off: Property 'la132-loongarch-cpu.lasx' not found
      
          4. start with '-cpu max,lasx=off' or start with '-cpu la464,lasx=off' query cpu model la132
          (QEMU) query-cpu-model-expansion type=static  model={"name":"la132"}
          {"return": {"model": {"name": "la132"}}}
      
      Acked-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: default avatarSong Gao <gaosong@loongson.cn>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20231020084925.3457084-4-gaosong@loongson.cn>
      31f694b9
    • Song Gao's avatar
      target/loongarch: Allow user enable/disable LSX/LASX features · 464136ce
      Song Gao authored
      
      Some users may not need LSX/LASX, this patch allows the user
      enable/disable LSX/LASX features.
      
       e.g
       '-cpu max,lsx=on,lasx=on'   (default);
       '-cpu max,lsx=on,lasx=off'  (enabled LSX);
       '-cpu max,lsx=off,lasx=on'  (enabled LASX, LSX);
       '-cpu max,lsx=off'          (disable LSX and LASX).
      
      Signed-off-by: default avatarSong Gao <gaosong@loongson.cn>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20231020084925.3457084-3-gaosong@loongson.cn>
      464136ce
    • Song Gao's avatar
      target/loongarch: Add cpu model 'max' · d6f07732
      Song Gao authored
      
      We use cpu la464 for the 'max' cpu.
      
      Signed-off-by: default avatarSong Gao <gaosong@loongson.cn>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20231020084925.3457084-2-gaosong@loongson.cn>
      d6f07732
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-target-arm-20231102' of... · d762bf97
      Stefan Hajnoczi authored
      Merge tag 'pull-target-arm-20231102' of https://git.linaro.org/people/pmaydell/qemu-arm into staging
      
      target-arm queue:
       * linux-user/elfload: Add missing arm64 hwcap values
       * stellaris-gamepad: Convert to qdev
       * docs/specs: Convert various txt docs to rST
       * MAINTAINERS: Make sure that gicv3_internal.h is covered, too
       * hw/arm/pxa2xx_gpio: Pass CPU using QOM link property
       * hw/watchdog/wdt_imx2: Trace MMIO access and timer activity
       * hw/misc/imx7_snvs: Trace MMIO access
       * hw/misc/imx6_ccm: Convert DPRINTF to trace events
       * hw/i2c/pm_smbus: Convert DPRINTF to trace events
       * target/arm: Enable FEAT_MOPS insns in user-mode emulation
       * linux-user: Report AArch64 hwcap2 fields above bit 31
       * target/arm: Make FEAT_MOPS SET* insns handle Xs == XZR correctly
       * target/arm: Fix SVE STR increment
       * hw/char/stm32f2xx_usart: implement TX interrupts
       * target/arm: Correctly propagate stage 1 BTI guarded bit in a two-stage walk
       * xlnx-versal-virt: Add AMD/Xilinx TRNG device
      
      * tag 'pull-target-arm-20231102' of https://git.linaro.org/people/pmaydell/qemu-arm
      
      : (33 commits)
        tests/qtest: Introduce tests for AMD/Xilinx Versal TRNG device
        hw/arm: xlnx-versal-virt: Add AMD/Xilinx TRNG device
        hw/misc: Introduce AMD/Xilix Versal TRNG device
        target/arm: Correctly propagate stage 1 BTI guarded bit in a two-stage walk
        hw/char/stm32f2xx_usart: Add more definitions for CR1 register
        hw/char/stm32f2xx_usart: Update IRQ when DR is written
        hw/char/stm32f2xx_usart: Extract common IRQ update code to update_irq()
        target/arm: Fix SVE STR increment
        target/arm: Make FEAT_MOPS SET* insns handle Xs == XZR correctly
        linux-user: Report AArch64 hwcap2 fields above bit 31
        target/arm: Enable FEAT_MOPS insns in user-mode emulation
        hw/i2c/pm_smbus: Convert DPRINTF to trace events
        hw/misc/imx6_ccm: Convert DPRINTF to trace events
        hw/misc/imx7_snvs: Trace MMIO access
        hw/watchdog/wdt_imx2: Trace timer activity
        hw/watchdog/wdt_imx2: Trace MMIO access
        hw/arm/pxa2xx_gpio: Pass CPU using QOM link property
        MAINTAINERS: Make sure that gicv3_internal.h is covered, too
        docs/specs/vmgenid: Convert to rST
        docs/specs/vmcoreinfo: Convert to rST
        ...
      
      Conflicts:
        hw/input/stellaris_input.c
        The qdev conversion in this pull request ("stellaris-gamepad: Convert
        to qdev") eliminates the vmstate_register() call that was converted to
        vmstate_register_any() in the conflicting migration pull request.
        vmstate_register_any() is no longer necessary now that this device has
        been converted to qdev, so take this pull request's version of
        stellaris_gamepad.c over the previous pull request's
        stellaris_input.c (the file was renamed).
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      d762bf97
    • Stefan Hajnoczi's avatar
      Merge tag 'migration-20231102-pull-request' of https://gitlab.com/juan.quintela/qemu into staging · 75b7b25d
      Stefan Hajnoczi authored
      Migration Pull request (20231102)
      
      Hi
      
      In this pull request:
      
      - migration reboot mode (steve)
        * I disabled the test because our CI don't like programs using so
          much shared memory.  Searching for a fix.
      - test for postcopy recover (fabiano)
      - MigrateAddress QAPI (het)
      - better return path error handling (peter)
      - traces for downtime (peter)
      - vmstate_register() check for duplicates (juan)
        thomas find better solutions for s390x and ipmi.
        now also works on s390x
      
      Please, apply.
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCAAdFiEEGJn/jt6/WMzuA0uC9IfvGFhy1yMFAmVDipMACgkQ9IfvGFhy
      # 1yNYnQ/9E5Cywsoqljqa/9FiKBSII2qMrmkfu6JLKqePnsh5pFZiukbudYRuJCCe
      # ZTDEmD0NmKRJbDx2xRU1qx/e6gKJy+gz37KP89Buuh/WwZHPboPYtxQpGvCSiH26
      # J3i+1+TgaqmkLzcO35wa8tp6gneQclWeAwKgMvdb4cm2pJEhgWRKI62ccyLzxeve
      # UCzFQn60t55ETyVZGnRD4YwdTQvGKH+DPlyTuJOLR3DePuvZd8EdH+ypvB4RLAy7
      # 3+CuQOxmF5LRXPbpJuAeOsudbmhhHzrO/yL7ZmsiKQTthsJv+SzC1bO94jhQrawZ
      # Q7GCii5KpGq0KnRTRKZRGk6XKwxcYRduXMX3R5tXuVmDmCZsjhXzziU8yEdftph8
      # 5TJdk1o0Gb043EFu81mrsQYS+9yJqe6sy6m3PTJaec54cAty5ln+c17WOvpAOaSV
      # +1phe05ftuVPmQ3KWhbIR/tCmavNLwEZxpVIfyaKJx04bFbtQ9gRpRyURORX4KXc
      # s4WXvNirQEohxYBnP4TPvA09xBTW3V08pk/wRDwt0YDXnLiqCltOuxD8r05K8K4B
      # MkCLcWj0g7he2tBkF60oz1KSIE0oTB81um9AzLIv5F2YSYLaJM5BIcoC437MR2f4
      # MOR7drR1fP5GsRu/SeU5BWvhVq3IvdOxR7G2MLNRJJvl7ZtGXDc=
      # =uaqL
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Thu 02 Nov 2023 19:40:03 HKT
      # gpg:                using RSA key 1899FF8EDEBF58CCEE034B82F487EF185872D723
      # gpg: Good signature from "Juan Quintela <quintela@redhat.com>" [full]
      # gpg:                 aka "Juan Quintela <quintela@trasno.org>" [full]
      # Primary key fingerprint: 1899 FF8E DEBF 58CC EE03  4B82 F487 EF18 5872 D723
      
      * tag 'migration-20231102-pull-request' of https://gitlab.com/juan.quintela/qemu
      
      : (40 commits)
        migration: modify test_multifd_tcp_none() to use new QAPI syntax.
        migration: Implement MigrateChannelList to hmp migration flow.
        migration: Implement MigrateChannelList to qmp migration flow.
        migration: modify migration_channels_and_uri_compatible() for new QAPI syntax
        migration: New migrate and migrate-incoming argument 'channels'
        migration: Convert the file backend to the new QAPI syntax
        migration: convert exec backend to accept MigrateAddress.
        migration: convert rdma backend to accept MigrateAddress
        migration: convert socket backend to accept MigrateAddress
        migration: convert migration 'uri' into 'MigrateAddress'
        migration: New QAPI type 'MigrateAddress'
        migration: Change ram_dirty_bitmap_reload() retval to bool
        tests/migration-test: Add a test for postcopy hangs during RECOVER
        migration: Allow network to fail even during recovery
        migration: Refactor error handling in source return path
        tests/qtest: migration: add reboot mode test
        cpr: reboot mode
        cpr: relax vhost migration blockers
        cpr: relax blockdev migration blockers
        migration: per-mode blockers
        ...
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      75b7b25d
  2. Nov 02, 2023
Loading