1. 16 3月, 2015 6 次提交
    • A
      target-arm: get_phys_addr_lpae: more xn control · d8e052b3
      Andrew Jones 提交于
      This patch makes the following changes to the determination of
      whether an address is executable, when translating addresses
      using LPAE.
      
      1. No longer assumes that PL0 can't execute when it can't read.
         It can in AArch64, a difference from AArch32.
      2. Use va_size == 64 to determine we're in AArch64, rather than
         arm_feature(env, ARM_FEATURE_V8), which is insufficient.
      3. Add additional XN determinants
         - NS && is_secure && (SCR & SCR_SIF)
         - WXN && (prot & PAGE_WRITE)
         - AArch64: (prot_PL0 & PAGE_WRITE)
         - AArch32: UWXN && (prot_PL0 & PAGE_WRITE)
         - XN determination should also work in secure mode (untested)
         - XN may even work in EL2 (currently impossible to test)
      4. Cleans up the bloated PAGE_EXEC condition - by removing it.
      
      The helper get_S1prot is introduced. It may even work in EL2,
      when support for that comes, but, as the function name implies,
      it only works for stage 1 translations.
      Signed-off-by: NAndrew Jones <drjones@redhat.com>
      Message-id: 1426099139-14463-4-git-send-email-drjones@redhat.com
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d8e052b3
    • A
      target-arm: fix get_phys_addr_v6/SCTLR_AFE access check · d76951b6
      Andrew Jones 提交于
      Introduce simple_ap_to_rw_prot(), which has the same behavior as
      ap_to_rw_prot(), but takes the 2-bit simple AP[2:1] instead of
      the 3-bit AP[2:0]. Use this in get_phys_addr_v6 when SCTLR_AFE
      is set, as that bit indicates we should be using the simple AP
      format.
      
      It's unlikely this path is getting used. I don't see CR_AFE
      getting used by Linux, so possibly not. If it had been, then
      the check would have been wrong for all but AP[2:1] = 0b11.
      Anyway, this should fix it up, in case it ever does get used.
      Signed-off-by: NAndrew Jones <drjones@redhat.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1426099139-14463-3-git-send-email-drjones@redhat.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d76951b6
    • A
      target-arm: convert check_ap to ap_to_rw_prot · 0fbf5238
      Andrew Jones 提交于
      Instead of mixing access permission checking with access permissions
      to page protection flags translation, just do the translation, and
      leave it to the caller to check the protection flags against the access
      type. Also rename to ap_to_rw_prot to better describe the new behavior.
      Signed-off-by: NAndrew Jones <drjones@redhat.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1426099139-14463-2-git-send-email-drjones@redhat.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      0fbf5238
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/pull-seabios-1.8.1-20150316-1' into staging · f421f057
      Peter Maydell 提交于
      seabios: update to 1.8.1 stable release
      
      # gpg: Signature made Mon Mar 16 08:09:25 2015 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-seabios-1.8.1-20150316-1:
        seabios: update to 1.8.1 stable release
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f421f057
    • P
      Merge remote-tracking branch 'remotes/rth/tags/tcg-pull-20150313' into staging · a8f1b43c
      Peter Maydell 提交于
      Pool TCG data, and ALWAYS/NEVER fix
      
      # gpg: Signature made Fri Mar 13 20:09:09 2015 GMT using RSA key ID 4DD0279B
      # gpg: Good signature from "Richard Henderson <rth7680@gmail.com>"
      # gpg:                 aka "Richard Henderson <rth@redhat.com>"
      # gpg:                 aka "Richard Henderson <rth@twiddle.net>"
      
      * remotes/rth/tags/tcg-pull-20150313:
        tcg: Complete handling of ALWAYS and NEVER
        tcg: Use tcg_malloc to allocate TCGLabel
        tcg: Change generator-side labels to a pointer
        tcg: Change translator-side labels to a pointer
        tcg-ia64: Use tcg_malloc to allocate TCGLabelQemuLdst
        tcg: Use tcg_malloc to allocate TCGLabelQemuLdst
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      a8f1b43c
    • G
      seabios: update to 1.8.1 stable release · 93f7c4f0
      Gerd Hoffmann 提交于
      Carries two bugfixes and support for multiple pci root buses.
      
      git shortlog rel-1.8.0..rel-1.8.1
      =================================
      
      Ameya Palande (1):
            x86: add barrier to read{b,w,l} and write{b,w,l} functions
      
      Kevin O'Connor (1):
            smp: Fix smp race introduced in 0673b787
      
      Marcel Apfelbaum (2):
            fw/pci: scan all buses if extraroots romfile is present
            fw/pci: map memory and IO regions for multiple pci root buses
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      93f7c4f0
  2. 14 3月, 2015 6 次提交
  3. 13 3月, 2015 10 次提交
  4. 12 3月, 2015 18 次提交