Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snp host latest #6

Open
wants to merge 1,985 commits into
base: snp-host-latest
Choose a base branch
from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Feb 20, 2024

  1. dyndbg: replace kstrdup() + strchr() with kstrdup_and_replace()

    Replace open coded functionalify of kstrdup_and_replace() with a call.
    
    Link: https://lkml.kernel.org/r/20240213162741.3102810-1-andriy.shevchenko@linux.intel.com
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
    Cc: Jason Baron <jbaron@akamai.com>
    Cc: Jim Cromie <jim.cromie@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    andy-shev authored and akpm00 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    5e015cb View commit details
    Browse the repository at this point in the history
  2. Normalise "name (ad@dr)" MODULE_AUTHORs to "name <ad@dr>"

    Found with git grep 'MODULE_AUTHOR(".*([^)]*@'
    Fixed with
      sed -i '/MODULE_AUTHOR(".*([^)]*@/{s/ (/ </g;s/)"/>"/;s/)and/> and/}' \
        $(git grep -l 'MODULE_AUTHOR(".*([^)]*@')
    
    Also:
      in drivers/media/usb/siano/smsusb.c normalise ", INC" to ", Inc";
         this is what every other MODULE_AUTHOR for this company says,
         and it's what the header says
      in drivers/sbus/char/openprom.c normalise a double-spaced separator;
         this is clearly copied from the copyright header,
         where the names are aligned on consecutive lines thusly:
          * Linux/SPARC PROM Configuration Driver
          * Copyright (C) 1996 Thomas K. Dyas (tdyas@noc.rutgers.edu)
          * Copyright (C) 1996 Eddie C. Dost  (ecd@skynet.be)
         but the authorship branding is single-line
    
    Link: https://lkml.kernel.org/r/mk3geln4azm5binjjlfsgjepow4o73domjv6ajybws3tz22vb3@tarta.nabijaczleweli.xyz
    Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
    Cc: Joe Perches <joe@perches.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    nabijaczleweli authored and akpm00 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    5691503 View commit details
    Browse the repository at this point in the history
  3. const_structs.checkpatch: add device_type

    Since commit aed65af ("drivers: make device_type const"), the driver
    core can properly handle constant struct device_type.  Make sure that new
    usages of the struct already enter the tree as const.
    
    Link: https://lkml.kernel.org/r/20240218-device_cleanup-checkpatch-v1-1-8b0b89c4f6b1@marliere.net
    Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
    Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Joe Perches <joe@perches.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    rbmarliere authored and akpm00 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    cded526 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e36e2a3 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'docs-fixes' into docs-mw

    Bring the PDF build fix into docs-next so we can ... build PDFs
    Jonathan Corbet committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    920290f View commit details
    Browse the repository at this point in the history
  6. Merge branch 'mm-hotfixes-unstable' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/akpm/mm
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    664842a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e674e40 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    037abe5 View commit details
    Browse the repository at this point in the history
  9. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/geert/linux-m68k.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    5c25bbc View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    72ca0b9 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f7deaba View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    37770ce View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a1baded View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    d40107c View commit details
    Browse the repository at this point in the history
  15. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/wireless/wireless.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    f7260ac View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    98a6b12 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    46ef362 View commit details
    Browse the repository at this point in the history
  18. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/broonie/regulator.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    ca08189 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    409eaea View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    3391fc0 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    2d416d3 View commit details
    Browse the repository at this point in the history
  22. Merge branch 'counter-current' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/wbg/counter.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    bd1d202 View commit details
    Browse the repository at this point in the history
  23. Merge branch 'char-misc-linus' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/gregkh/char-misc.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    44dfda3 View commit details
    Browse the repository at this point in the history
  24. Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git…

    …/westeri/thunderbolt.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    5815c44 View commit details
    Browse the repository at this point in the history
  25. Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/herbert/crypto-2.6.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    5cbf536 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    6979c3b View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    eda6837 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    cfeea18 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    5b060e0 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    2fbd341 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    2e2c25d View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    6bcc112 View commit details
    Browse the repository at this point in the history
  33. Merge branch 'hyperv-fixes' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/hyperv/linux.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    a7f2dd9 View commit details
    Browse the repository at this point in the history
  34. Merge branch 'riscv-dt-fixes' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/conor/linux.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    ab4d231 View commit details
    Browse the repository at this point in the history
  35. Merge branch 'riscv-soc-fixes' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/conor/linux.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    4320476 View commit details
    Browse the repository at this point in the history
  36. Merge branch 'gpio/for-current' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/brgl/linux.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    91f321c View commit details
    Browse the repository at this point in the history
  37. Merge branch 'kunit-fixes' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/shuah/linux-kselftest.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    2d35224 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    9c9064f View commit details
    Browse the repository at this point in the history
  39. Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git…

    …/sre/linux-power-supply.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    9584c91 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    ef52c68 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    144fd04 View commit details
    Browse the repository at this point in the history
  42. Merge branch 'i2c/i2c-host-fixes' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/andi.shyti/linux.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    ab53370 View commit details
    Browse the repository at this point in the history
  43. Merge branch 'for-linux-next-fixes' of git://anongit.freedesktop.org/…

    …drm/drm-misc
    
    # Conflicts:
    #	drivers/gpu/drm/tests/drm_buddy_test.c
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    5b87d67 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    eecdd09 View commit details
    Browse the repository at this point in the history
  45. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/masahiroy/linux-kbuild.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    30556ca View commit details
    Browse the repository at this point in the history
  46. Merge branch 'perf-tools-next' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/perf/perf-tools-next.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    85abaf5 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    02ab2b5 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    970b6a9 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    74bd0f0 View commit details
    Browse the repository at this point in the history
  50. Merge branch 'for-next/perf' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/will/linux.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    f9e9f1e View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    6d11f21 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    57303ed View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    ec935f2 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    b6c3ea6 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    5a5935a View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    0a9af3f View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    b317838 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    333673e View commit details
    Browse the repository at this point in the history
  59. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/tmlind/linux-omap.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    0285601 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    5d903b4 View commit details
    Browse the repository at this point in the history
  61. Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…

    …geert/renesas-devel.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    83273df View commit details
    Browse the repository at this point in the history
  62. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/mmind/linux-rockchip.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    ca10055 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    4e042c4 View commit details
    Browse the repository at this point in the history
  64. Merge branch 'for-linux-next' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/sudeep.holla/linux.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    52081d7 View commit details
    Browse the repository at this point in the history
  65. Merge branch 'stm32-next' of git://git.kernel.org/pub/scm/linux/kerne…

    …l/git/atorgue/stm32.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    b8fe6bd View commit details
    Browse the repository at this point in the history
  66. Merge branch 'sunxi/for-next' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/sunxi/linux.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    39724ac View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    451e43e View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    fc5de15 View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    40ca4f1 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    2c01f87 View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    8891f25 View commit details
    Browse the repository at this point in the history
  72. Merge branch 'renesas-clk' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/geert/renesas-drivers.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    f0327a0 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    62eab04 View commit details
    Browse the repository at this point in the history
  74. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/deller/parisc-linux.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    2c28acc View commit details
    Browse the repository at this point in the history
  75. Configuration menu
    Copy the full SHA
    b83fd29 View commit details
    Browse the repository at this point in the history
  76. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/riscv/linux.git
    
    # Conflicts:
    #	arch/riscv/include/asm/bitops.h
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    d28d59a View commit details
    Browse the repository at this point in the history
  77. Merge branch 'riscv-dt-for-next' of git://git.kernel.org/pub/scm/linu…

    …x/kernel/git/conor/linux.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    a332f22 View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    041aeaa View commit details
    Browse the repository at this point in the history
  79. Merge branch 'for-next' of git:git.kernel.org/pub/scm/linux/kernel/gi…

    …t/glaubitz/sh-linux.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    e0cf8fb View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    d954088 View commit details
    Browse the repository at this point in the history
  81. Configuration menu
    Copy the full SHA
    33aba96 View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    42121a4 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    98a9f0b View commit details
    Browse the repository at this point in the history
  84. Configuration menu
    Copy the full SHA
    174e0b0 View commit details
    Browse the repository at this point in the history
  85. Configuration menu
    Copy the full SHA
    21c6d4c View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    11058eb View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    35ca66c View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    cb8b1f2 View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    0676924 View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    faf2d9f View commit details
    Browse the repository at this point in the history
  91. Configuration menu
    Copy the full SHA
    fe8e651 View commit details
    Browse the repository at this point in the history
  92. Configuration menu
    Copy the full SHA
    da3c2ba View commit details
    Browse the repository at this point in the history
  93. Configuration menu
    Copy the full SHA
    2a524db View commit details
    Browse the repository at this point in the history
  94. Configuration menu
    Copy the full SHA
    a182b1c View commit details
    Browse the repository at this point in the history
  95. Merge branch 'ericvh/for-next' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/ericvh/v9fs.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    ee53123 View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    5954d6a View commit details
    Browse the repository at this point in the history
  97. Configuration menu
    Copy the full SHA
    1ec13a1 View commit details
    Browse the repository at this point in the history
  98. Configuration menu
    Copy the full SHA
    e0a41e2 View commit details
    Browse the repository at this point in the history
  99. Configuration menu
    Copy the full SHA
    4acceff View commit details
    Browse the repository at this point in the history
  100. Configuration menu
    Copy the full SHA
    d524c58 View commit details
    Browse the repository at this point in the history
  101. Merge branch 'for-next/pstore' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/kees/linux.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    d336306 View commit details
    Browse the repository at this point in the history
  102. Configuration menu
    Copy the full SHA
    18d5353 View commit details
    Browse the repository at this point in the history
  103. Merge branch 'i2c/i2c-host' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/andi.shyti/linux.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    67af44f View commit details
    Browse the repository at this point in the history
  104. Configuration menu
    Copy the full SHA
    06fc92f View commit details
    Browse the repository at this point in the history
  105. Merge branch 'hwmon-next' of git://git.kernel.org/pub/scm/linux/kerne…

    …l/git/groeck/linux-staging.git
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    93517b9 View commit details
    Browse the repository at this point in the history
  106. Configuration menu
    Copy the full SHA
    5aa39dc View commit details
    Browse the repository at this point in the history
  107. Merge branch 'master' of git://linuxtv.org/media_tree.git

    # Conflicts:
    #	drivers/staging/media/atomisp/pci/atomisp_cmd.c
    sfrothwell committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    adb9286 View commit details
    Browse the repository at this point in the history
  108. Configuration menu
    Copy the full SHA
    f11e9cb View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2024

  1. Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kerne…

    …l/git/rafael/linux-pm.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    0c904f3 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'cpufreq/arm/linux-next' of git://git.kernel.org/pub/scm…

    …/linux/kernel/git/vireshk/pm.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    d46dec1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f2b6ed2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3341a57 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'opp/linux-next' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/vireshk/pm.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    9c79668 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3cccfcd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    439d8d0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e9708ac View commit details
    Browse the repository at this point in the history
  9. Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/klassert/ipsec-next.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    d8fbe9d View commit details
    Browse the repository at this point in the history
  10. Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/bluetooth/bluetooth-next.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    40eeaed View commit details
    Browse the repository at this point in the history
  11. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/wireless/wireless-next.git
    
    # Conflicts:
    #	drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    ad7c357 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0b9e0d6 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    08915cf View commit details
    Browse the repository at this point in the history
  14. Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/herbert/cryptodev-2.6.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    21cf720 View commit details
    Browse the repository at this point in the history
  15. Merge branch 'drm-next' of git://git.freedesktop.org/git/drm/drm.git

    # Conflicts:
    #	drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
    #	drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer_private.h
    #	drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    4517eca View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    cfe7565 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    398e2e1 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    f8774ef View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    12c6047 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    f3cb9cd View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    9f4ced4 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    db38c4b View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    32ca2f8 View commit details
    Browse the repository at this point in the history
  24. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/deller/linux-fbdev.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    5a53049 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    dbd09f1 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    1f2431c View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    5eef850 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    3114cdf View commit details
    Browse the repository at this point in the history
  29. Merge branch 'modules-next' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/mcgrof/linux.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    3a38d82 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    7ac6985 View commit details
    Browse the repository at this point in the history
  31. Merge branch 'for-next' of git://git.kernel.dk/linux-block.git

    # Conflicts:
    #	block/blk.h
    #	include/linux/sched.h
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    732d072 View commit details
    Browse the repository at this point in the history
  32. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/device-mapper/linux-dm.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    b6f49f3 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    2d18061 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    578a39e View commit details
    Browse the repository at this point in the history
  35. Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…

    …ulfh/mmc.git
    
    # Conflicts:
    #	drivers/mmc/core/queue.c
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    7f4c36b View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    e03eb6b View commit details
    Browse the repository at this point in the history
  37. Merge branch 'for-backlight-next' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/lee/backlight.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    d3bf98d View commit details
    Browse the repository at this point in the history
  38. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/sre/linux-power-supply.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    c609bda View commit details
    Browse the repository at this point in the history
  39. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/broonie/regulator.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    8ff57b4 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    3cc6641 View commit details
    Browse the repository at this point in the history
  41. Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/zohar/linux-integrity
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    869b7ad View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    f680659 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    7ac4267 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    90893a1 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    e79a43d View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    40614e1 View commit details
    Browse the repository at this point in the history
  47. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/robh/linux.git
    
    # Conflicts:
    #	Documentation/devicetree/bindings/trivial-devices.yaml
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    4f6823c View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    7f3aca2 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    51d120a View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    5a71ca4 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    166b60a View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    ab9655f View commit details
    Browse the repository at this point in the history
  53. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/trace/linux-trace.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    0249cd2 View commit details
    Browse the repository at this point in the history
  54. Merge branch 'rcu/next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/paulmck/linux-rcu.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    ae47172 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    d19ae7e View commit details
    Browse the repository at this point in the history
  56. Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…

    …kvmarm/kvmarm.git
    
    # Conflicts:
    #	arch/arm64/kernel/cpufeature.c
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    0933fd8 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    28ba596 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    fc1fe24 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    32c2628 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    2e31428 View commit details
    Browse the repository at this point in the history
  61. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/pdx86/platform-drivers-x86.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    28d36a0 View commit details
    Browse the repository at this point in the history
  62. Merge branch 'for-firmware-next' of git://git.kernel.org/pub/scm/linu…

    …x/kernel/git/chrome-platform/linux.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    cd40abb View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    4b83098 View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    4eb3db1 View commit details
    Browse the repository at this point in the history
  65. Merge branch 'driver-core-next' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/gregkh/driver-core.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    728edcd View commit details
    Browse the repository at this point in the history
  66. Merge branch 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/gregkh/usb.git
    
    # Conflicts:
    #	Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml
    #	drivers/usb/roles/class.c
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    155a1d4 View commit details
    Browse the repository at this point in the history
  67. Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…

    …westeri/thunderbolt.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    516098d View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    8e0db57 View commit details
    Browse the repository at this point in the history
  69. Merge branch 'char-misc-next' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/gregkh/char-misc.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    7a2d63c View commit details
    Browse the repository at this point in the history
  70. Merge branch 'habanalabs-next' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/ogabbay/linux.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    740edc1 View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    439d4ab View commit details
    Browse the repository at this point in the history
  72. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/fpga/linux-fpga.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    8b4ae77 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    65d619a View commit details
    Browse the repository at this point in the history
  74. Merge branch 'togreg' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/jic23/iio.git
    
    # Conflicts:
    #	drivers/of/property.c
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    78caa12 View commit details
    Browse the repository at this point in the history
  75. Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…

    …phy/linux-phy.git
    
    # Conflicts:
    #	drivers/phy/qualcomm/phy-qcom-qmp-usb.c
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    a64c388 View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    144c562 View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    aa19532 View commit details
    Browse the repository at this point in the history
  78. Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/gregkh/staging.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    de7d136 View commit details
    Browse the repository at this point in the history
  79. Merge branch 'counter-next' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/wbg/counter.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    9eef259 View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    fc3ad00 View commit details
    Browse the repository at this point in the history
  81. Configuration menu
    Copy the full SHA
    96f1e79 View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    1911b18 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    8509937 View commit details
    Browse the repository at this point in the history
  84. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/remoteproc/linux.git
    
    # Conflicts:
    #	drivers/remoteproc/imx_dsp_rproc.c
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    95f2f32 View commit details
    Browse the repository at this point in the history
  85. Merge branch 'gpio/for-next' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/brgl/linux.git
    
    # Conflicts:
    #	Documentation/userspace-api/index.rst
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    4c7aea7 View commit details
    Browse the repository at this point in the history
  86. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/linusw/linux-pinctrl.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    f401ebc View commit details
    Browse the repository at this point in the history
  87. Merge branch 'renesas-pinctrl' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/geert/renesas-drivers.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    d799a10 View commit details
    Browse the repository at this point in the history
  88. Merge branch 'pwm/for-next' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/ukleinek/linux.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    73aa1ba View commit details
    Browse the repository at this point in the history
  89. Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…

    …shuah/linux-kselftest.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    82e2973 View commit details
    Browse the repository at this point in the history
  90. Merge branch 'kunit' of git://git.kernel.org/pub/scm/linux/kernel/git…

    …/shuah/linux-kselftest.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    195e4b3 View commit details
    Browse the repository at this point in the history
  91. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/livepatching/livepatching
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    c1bebcf View commit details
    Browse the repository at this point in the history
  92. Merge branch 'libnvdimm-for-next' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/nvdimm/nvdimm.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    4eb8ef4 View commit details
    Browse the repository at this point in the history
  93. Configuration menu
    Copy the full SHA
    1dfdfb2 View commit details
    Browse the repository at this point in the history
  94. Merge branch 'for-next/seccomp' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/kees/linux.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    73d2702 View commit details
    Browse the repository at this point in the history
  95. Configuration menu
    Copy the full SHA
    456e3a3 View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    438cedc View commit details
    Browse the repository at this point in the history
  97. Configuration menu
    Copy the full SHA
    314f032 View commit details
    Browse the repository at this point in the history
  98. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/andy/linux-auxdisplay.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    ef92fdb View commit details
    Browse the repository at this point in the history
  99. Configuration menu
    Copy the full SHA
    fb4b7b6 View commit details
    Browse the repository at this point in the history
  100. Configuration menu
    Copy the full SHA
    a13c846 View commit details
    Browse the repository at this point in the history
  101. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/krisman/unicode.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    569a0bc View commit details
    Browse the repository at this point in the history
  102. Merge branch 'slab/for-next' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/vbabka/slab.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    884cddc View commit details
    Browse the repository at this point in the history
  103. Configuration menu
    Copy the full SHA
    ccd69a7 View commit details
    Browse the repository at this point in the history
  104. Merge branch 'rust-next' of https://github.com/Rust-for-Linux/linux.git

    # Conflicts:
    #	Documentation/process/changes.rst
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    5445329 View commit details
    Browse the repository at this point in the history
  105. Merge branch 'sysctl-next' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/sysctl/sysctl.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    e16788c View commit details
    Browse the repository at this point in the history
  106. Merge branch 'for-next/execve' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/kees/linux.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    45a172d View commit details
    Browse the repository at this point in the history
  107. Merge branch 'bitmap-for-next' of https://github.com/norov/linux.git

    # Conflicts:
    #	drivers/block/null_blk/main.c
    #	drivers/tty/serial/sc16is7xx.c
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    efac291 View commit details
    Browse the repository at this point in the history
  108. Merge branch 'for-next/kspp' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/kees/linux.git
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    774fe9f View commit details
    Browse the repository at this point in the history
  109. Add linux-next specific files for 20240221

    Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
    sfrothwell committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    4893c63 View commit details
    Browse the repository at this point in the history
  110. KVM: Add hugepage support for dedicated guest memory

    Extended guest_memfd to allow backing guest memory with hugepages. This
    is done as a best-effort by default until a better-defined mechanism is
    put in place that can provide better control/assurances to userspace
    about hugepage allocations.
    
    When reporting the max order when KVM gets a pfn from guest_memfd, force
    order-0 pages if the hugepage is not fully contained by the memslot
    binding, e.g. if userspace requested hugepages but punches a hole in the
    memslot bindings in order to emulate x86's VGA hole.
    
    Link: https://lore.kernel.org/kvm/20231027182217.3615211-1-seanjc@google.com/T/#mccbd3e8bf9897f0ddbf864e6318d6f2f208b269c
    Signed-off-by: Sean Christopherson <seanjc@google.com>
    Message-Id: <20231027182217.3615211-18-seanjc@google.com>
    [Allow even with CONFIG_TRANSPARENT_HUGEPAGE; dropped momentarily due to
     uneasiness about the API. - Paolo]
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    [mdr: based on discussion in the Link regarding original patch, make the
          following set of changes:
          - For now, don't introduce an opt-in flag to enable hugepage
            support. By default, just make a best-effort for PMD_ORDER
            allocations so that there are no false assurances to userspace
            that they'll get hugepages. It's better at least than the
            current guarantee that they will get 4K pages every time. A more
            proper opt-in interface can then improve on things later.
          - Pass GFP_NOWARN to alloc_pages() so failures are not disruptive
            to normal operations
          - Drop size checks during creation time. Instead just avoid huge
            allocations if they extend beyond end of the memfd.
          - Drop hugepage-related unit tests since everything is now handled
            transparently to userspace anyway.
          - Update commit message accordingly.]
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    sean-jc authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    d125291 View commit details
    Browse the repository at this point in the history
  111. mm: Introduce AS_INACCESSIBLE for encrypted/confidential memory

    filemap users like guest_memfd may use page cache pages to
    allocate/manage memory that is only intended to be accessed by guests
    via hardware protections like encryption. Writes to memory of this sort
    in common paths like truncation may cause unexpected behavior such
    writing garbage instead of zeros when attempting to zero pages, or
    worse, triggering hardware protections that are considered fatal as far
    as the kernel is concerned.
    
    Introduce a new address_space flag, AS_INACCESSIBLE, and use this
    initially to prevent zero'ing of pages during truncation, with the
    understanding that it is up to the owner of the mapping to handle this
    specially if needed.
    
    Link: https://lore.kernel.org/lkml/ZR9LYhpxTaTk6PJX@google.com/
    Cc: Matthew Wilcox <willy@infradead.org>
    Suggested-by: Sean Christopherson <seanjc@google.com>
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    f4f43eb View commit details
    Browse the repository at this point in the history
  112. KVM: Use AS_INACCESSIBLE when creating guest_memfd inode

    truncate_inode_pages_range() may attempt to zero pages before truncating
    them, and this will occur before arch-specific invalidations can be
    triggered via .invalidate_folio/.free_folio hooks via kvm_gmem_aops. For
    AMD SEV-SNP this would result in an RMP #PF being generated by the
    hardware, which is currently treated as fatal (and even if specifically
    allowed for, would not result in anything other than garbage being
    written to guest pages due to encryption). On Intel TDX this would also
    result in undesirable behavior.
    
    Set the AS_INACCESSIBLE flag to prevent the MM from attempting
    unexpected accesses of this sort during operations like truncation.
    
    This may also in some cases yield a decent performance improvement for
    guest_memfd userspace implementations that hole-punch ranges immediately
    after private->shared conversions via KVM_SET_MEMORY_ATTRIBUTES, since
    the current implementation of truncate_inode_pages_range() always ends
    up zero'ing an entire 4K range if it is backing by a 2M folio.
    
    Link: https://lore.kernel.org/lkml/ZR9LYhpxTaTk6PJX@google.com/
    Suggested-by: Sean Christopherson <seanjc@google.com>
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    60ebf3d View commit details
    Browse the repository at this point in the history
  113. KVM: x86: Add gmem hook for initializing memory

    guest_memfd pages are generally expected to be in some arch-defined
    initial state prior to using them for guest memory. For SEV-SNP this
    initial state is 'private', or 'guest-owned', and requires additional
    operations to move these pages into a 'private' state by updating the
    corresponding entries the RMP table.
    
    Allow for an arch-defined hook to handle updates of this sort, and go
    ahead and implement one for x86 so KVM implementations like AMD SVM can
    register a kvm_x86_ops callback to handle these updates for SEV-SNP
    guests.
    
    The preparation callback is always called when allocating/grabbing
    folios via gmem, and it is up to the architecture to keep track of
    whether or not the pages are already in the expected state (e.g. the RMP
    table in the case of SEV-SNP).
    
    In some cases, it is necessary to defer the preparation of the pages to
    handle things like in-place encryption of initial guest memory payloads
    before marking these pages as 'private'/'guest-owned', so also add a
    helper that performs the same function as kvm_gmem_get_pfn(), but allows
    for the preparation callback to be bypassed to allow for pages to be
    accessed beforehand.
    
    Link: https://lore.kernel.org/lkml/ZLqVdvsF11Ddo7Dq@google.com/
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    aa052a2 View commit details
    Browse the repository at this point in the history
  114. KVM: x86: Add gmem hook for invalidating memory

    In some cases, like with SEV-SNP, guest memory needs to be updated in a
    platform-specific manner before it can be safely freed back to the host.
    Wire up arch-defined hooks to the .free_folio kvm_gmem_aops callback to
    allow for special handling of this sort when freeing memory in response
    to FALLOC_FL_PUNCH_HOLE operations and when releasing the inode, and go
    ahead and define an arch-specific hook for x86 since it will be needed
    for handling memory used for SEV-SNP guests.
    
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    90fe9a6 View commit details
    Browse the repository at this point in the history
  115. KVM: x86/mmu: Pass around full 64-bit error code for KVM page faults

    In some cases the full 64-bit error code for the KVM page fault will be
    needed to determine things like whether or not a fault was for a private
    or shared guest page, so update related code to accept the full 64-bit
    value so it can be plumbed all the way through to where it is needed.
    
    The accessors of fault->error_code are changed as follows:
    
    - FNAME(page_fault): change to explicitly use lower_32_bits() since that
                         is no longer done in kvm_mmu_page_fault()
    - kvm_mmu_page_fault(): explicit mask with PFERR_RSVD_MASK,
                            PFERR_NESTED_GUEST_PAGE
    - mmutrace: changed u32 -> u64
    
    Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
    Link: https://lore.kernel.org/kvm/20230612042559.375660-1-michael.roth@amd.com/T/#mbd0b20c9a2cf50319d5d2a27b63f73c772112076
    [mdr: drop references/changes to code not in current gmem tree, update
          commit message]
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    yamahata authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    a345169 View commit details
    Browse the repository at this point in the history
  116. KVM: x86: Add KVM_X86_SNP_VM vm_type

    In some cases, such as detecting whether a page fault should be handled
    as a private fault or not, KVM will need to handle things differently
    versus the existing KVM_X86_PROTECTED_VM type.
    
    Add a new KVM_X86_SNP_VM to allow for this, along with a helper to query
    the vm_type.
    
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    98ab5eb View commit details
    Browse the repository at this point in the history
  117. KVM: x86: Define RMP page fault error bits for #NPF

    When SEV-SNP is enabled globally, the hardware places restrictions on all
    memory accesses based on the RMP entry, whether the hypervisor or a VM,
    performs the accesses. When hardware encounters an RMP access violation
    during a guest access, it will cause a #VMEXIT(NPF) with a number of
    additional bits set to indicate the reasons for the #NPF. Define those
    here.
    
    See APM2 section 16.36.10 for more details.
    
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    [mdr: add some additional details to commit message]
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    codomania authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    3393aae View commit details
    Browse the repository at this point in the history
  118. KVM: x86: Determine shared/private faults based on vm_type

    For KVM_X86_SNP_VM, only the PFERR_GUEST_ENC_MASK flag is needed to
    determine with an #NPF is due to a private/shared access by the guest.
    Implement that handling here. Also add handling needed to deal with
    SNP guests which in some cases will make MMIO accesses with the
    encryption bit.
    
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    98a06e6 View commit details
    Browse the repository at this point in the history
  119. KVM: SEV: Select KVM_GENERIC_PRIVATE_MEM when CONFIG_KVM_AMD_SEV=y

    SEV-SNP relies on restricted/protected memory support to run guests, so
    make sure to enable that support via the CONFIG_KVM_GENERIC_PRIVATE_MEM
    config option.
    
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    978a7a6 View commit details
    Browse the repository at this point in the history
  120. KVM: SEV: Add support to handle AP reset MSR protocol

    Add support for AP Reset Hold being invoked using the GHCB MSR protocol,
    available in version 2 of the GHCB specification.
    
    Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    tlendacky authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    953aefc View commit details
    Browse the repository at this point in the history
  121. KVM: SEV: Add GHCB handling for Hypervisor Feature Support requests

    Version 2 of the GHCB specification introduced advertisement of features
    that are supported by the Hypervisor.
    
    Now that KVM supports version 2 of the GHCB specification, bump the
    maximum supported protocol version.
    
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    codomania authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    c48b2b2 View commit details
    Browse the repository at this point in the history
  122. KVM: SEV: Add initial SEV-SNP support

    The next generation of SEV is called SEV-SNP (Secure Nested Paging).
    SEV-SNP builds upon existing SEV and SEV-ES functionality while adding
    new hardware-based security protection. SEV-SNP adds strong memory
    encryption and integrity protection to help prevent malicious
    hypervisor-based attacks such as data replay, memory re-mapping, and
    more, to create an isolated execution environment.
    
    Implement some initial infrastructure in KVM to check/report when SNP is
    enabled on the system.
    
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    [mdr: commit fixups, use similar ASID reporting as with SEV/SEV-ES]
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    codomania authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    d8744c4 View commit details
    Browse the repository at this point in the history
  123. *KVM: SEV: Add KVM_SNP_INIT command

    TODO: move to using common KVM_SEV_INIT2 interface. The flag discovery
    mechanism also needs to be changed since it provides no mechanism for
    discovery outside of trying to trigger the error path by guessing at
    unimplemented flags. May went to leverage something similar to the
    KVM_SEV_INIT2 VMSA feature machinery for this as well which involves a
    KVM device ioctl to return the feature bitmap.
    
    The KVM_SNP_INIT command is used by the hypervisor to initialize the
    SEV-SNP platform context. In a typical workflow, this command should be
    the first command issued. When creating SEV-SNP guest, the VMM must use
    this command instead of the KVM_SEV_INIT or KVM_SEV_ES_INIT.
    
    The flags value must be zero, it will be extended in future SNP support
    to communicate the optional features (such as restricted INT injection
    etc).
    
    Co-developed-by: Pavan Kumar Paluri <papaluri@amd.com>
    Signed-off-by: Pavan Kumar Paluri <papaluri@amd.com>
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    codomania authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    aef3234 View commit details
    Browse the repository at this point in the history
  124. KVM: SEV: Add KVM_SEV_SNP_LAUNCH_START command

    KVM_SEV_SNP_LAUNCH_START begins the launch process for an SEV-SNP guest.
    The command initializes a cryptographic digest context used to construct
    the measurement of the guest. If the guest is expected to be migrated,
    the command also binds a migration agent (MA) to the guest.
    
    For more information see the SEV-SNP specification.
    
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    [mdr: hold sev_deactivate_lock when calling SEV_CMD_SNP_DECOMMISSION]
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    codomania authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    b9f457b View commit details
    Browse the repository at this point in the history
  125. *KVM: SEV: Add KVM_SEV_SNP_LAUNCH_UPDATE command

    The KVM_SEV_SNP_LAUNCH_UPDATE command can be used to insert data into
    the guest's memory. The data is encrypted with the cryptographic context
    created with the KVM_SEV_SNP_LAUNCH_START.
    
    In addition to the inserting data, it can insert a two special pages
    into the guests memory: the secrets page and the CPUID page.
    
    While terminating the guest, reclaim the guest pages added in the RMP
    table. If the reclaim fails, then the page is no longer safe to be
    released back to the system and leak them.
    
    For more information see the SEV-SNP specification.
    
    Co-developed-by: Michael Roth <michael.roth@amd.com>
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    codomania authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    ba2af1f View commit details
    Browse the repository at this point in the history
  126. *KVM: SEV: Add KVM_SEV_SNP_LAUNCH_FINISH command

    TODO: see if ID block / Author Key enabled bits can be set automatically
    rather than exposed directly via KVM API. See if there are other
    opportunities to architect things in user-facing APIs.
    
    The KVM_SEV_SNP_LAUNCH_FINISH finalize the cryptographic digest and stores
    it as the measurement of the guest at launch.
    
    While finalizing the launch flow, it also issues the LAUNCH_UPDATE command
    to encrypt the VMSA pages.
    
    If its an SNP guest, then VMSA was added in the RMP entry as
    a guest owned page and also removed from the kernel direct map
    so flush it later after it is transitioned back to hypervisor
    state and restored in the direct map.
    
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Harald Hoyer <harald@profian.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    [mdr: always measure BSP first to get consistent launch measurements]
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    005e2ac View commit details
    Browse the repository at this point in the history
  127. KVM: SEV: Add support to handle GHCB GPA register VMGEXIT

    SEV-SNP guests are required to perform a GHCB GPA registration. Before
    using a GHCB GPA for a vCPU the first time, a guest must register the
    vCPU GHCB GPA. If hypervisor can work with the guest requested GPA then
    it must respond back with the same GPA otherwise return -1.
    
    On VMEXIT, verify that the GHCB GPA matches with the registered value.
    If a mismatch is detected, then abort the guest.
    
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    codomania authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    f0d9a52 View commit details
    Browse the repository at this point in the history
  128. KVM: SEV: Add support to handle MSR based Page State Change VMGEXIT

    SEV-SNP VMs can ask the hypervisor to change the page state in the RMP
    table to be private or shared using the Page State Change MSR protocol
    as defined in the GHCB specification.
    
    When using gmem, private/shared memory is allocated through separate
    pools, and KVM relies on userspace issuing a KVM_SET_MEMORY_ATTRIBUTES
    KVM ioctl to tell the KVM MMU whether or not a particular GFN should be
    backed by private memory or not.
    
    Forward these page state change requests to userspace so that it can
    issue the expected KVM ioctls. The KVM MMU will handle updating the RMP
    entries when it is ready to map a private page into a guest.
    
    Define a new KVM_EXIT_VMGEXIT for exits of this type, and structure it
    so that it can be extended for other cases where VMGEXITs need some
    level of handling in userspace.
    
    Co-developed-by: Michael Roth <michael.roth@amd.com>
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    codomania authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    37ba9cb View commit details
    Browse the repository at this point in the history
  129. KVM: SEV: Add support to handle Page State Change VMGEXIT

    SEV-SNP VMs can ask the hypervisor to change the page state in the RMP
    table to be private or shared using the Page State Change NAE event
    as defined in the GHCB specification version 2.
    
    Forward these requests to userspace as KVM_EXIT_VMGEXITs, similar to how
    it is done for requests that don't use a GHCB page.
    
    Co-developed-by: Michael Roth <michael.roth@amd.com>
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    codomania authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    9ca02d7 View commit details
    Browse the repository at this point in the history
  130. KVM: x86: Export the kvm_zap_gfn_range() for the SNP use

    While resolving the RMP page fault, there may be cases where the page
    level between the RMP entry and TDP does not match and the 2M RMP entry
    must be split into 4K RMP entries. Or a 2M TDP page need to be broken
    into multiple of 4K pages.
    
    To keep the RMP and TDP page level in sync, zap the gfn range after
    splitting the pages in the RMP entry. The zap should force the TDP to
    gets rebuilt with the new page level.
    
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    codomania authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    5bf87c3 View commit details
    Browse the repository at this point in the history
  131. KVM: SEV: Add support to handle RMP nested page faults

    When SEV-SNP is enabled in the guest, the hardware places restrictions
    on all memory accesses based on the contents of the RMP table. When
    hardware encounters RMP check failure caused by the guest memory access
    it raises the #NPF. The error code contains additional information on
    the access type. See the APM volume 2 for additional information.
    
    When using gmem, RMP faults resulting from mismatches between the state
    in the RMP table vs. what the guest expects via its page table result
    in KVM_EXIT_MEMORY_FAULTs being forwarded to userspace to handle. This
    means the only expected case that needs to be handled in the kernel is
    when the page size of the entry in the RMP table is larger than the
    mapping in the nested page table, in which case a PSMASH instruction
    needs to be issued to split the large RMP entry into individual 4K
    entries so that subsequent accesses can succeed.
    
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Co-developed-by: Michael Roth <michael.roth@amd.com>
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    codomania authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    b7025f7 View commit details
    Browse the repository at this point in the history
  132. KVM: SEV: Use a VMSA physical address variable for populating VMCB

    In preparation to support SEV-SNP AP Creation, use a variable that holds
    the VMSA physical address rather than converting the virtual address.
    This will allow SEV-SNP AP Creation to set the new physical address that
    will be used should the vCPU reset path be taken.
    
    Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    tlendacky authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    79fc505 View commit details
    Browse the repository at this point in the history
  133. KVM: SEV: Support SEV-SNP AP Creation NAE event

    Add support for the SEV-SNP AP Creation NAE event. This allows SEV-SNP
    guests to alter the register state of the APs on their own. This allows
    the guest a way of simulating INIT-SIPI.
    
    A new event, KVM_REQ_UPDATE_PROTECTED_GUEST_STATE, is created and used
    so as to avoid updating the VMSA pointer while the vCPU is running.
    
    For CREATE
      The guest supplies the GPA of the VMSA to be used for the vCPU with
      the specified APIC ID. The GPA is saved in the svm struct of the
      target vCPU, the KVM_REQ_UPDATE_PROTECTED_GUEST_STATE event is added
      to the vCPU and then the vCPU is kicked.
    
    For CREATE_ON_INIT:
      The guest supplies the GPA of the VMSA to be used for the vCPU with
      the specified APIC ID the next time an INIT is performed. The GPA is
      saved in the svm struct of the target vCPU.
    
    For DESTROY:
      The guest indicates it wishes to stop the vCPU. The GPA is cleared
      from the svm struct, the KVM_REQ_UPDATE_PROTECTED_GUEST_STATE event is
      added to vCPU and then the vCPU is kicked.
    
    The KVM_REQ_UPDATE_PROTECTED_GUEST_STATE event handler will be invoked
    as a result of the event or as a result of an INIT. The handler sets the
    vCPU to the KVM_MP_STATE_UNINITIALIZED state, so that any errors will
    leave the vCPU as not runnable. Any previous VMSA pages that were
    installed as part of an SEV-SNP AP Creation NAE event are un-pinned. If
    a new VMSA is to be installed, the VMSA guest page is pinned and set as
    the VMSA in the vCPU VMCB and the vCPU state is set to
    KVM_MP_STATE_RUNNABLE. If a new VMSA is not to be installed, the VMSA is
    cleared in the vCPU VMCB and the vCPU state is left as
    KVM_MP_STATE_UNINITIALIZED to prevent it from being run.
    
    Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    [mdr: add handling for gmem]
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    tlendacky authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    5da5395 View commit details
    Browse the repository at this point in the history
  134. KVM: SEV: Add support for GHCB-based termination requests

    GHCB version 2 adds support for a GHCB-based termination request that
    a guest can issue when it reaches an error state and wishes to inform
    the hypervisor that it should be terminated. Implement support for that
    similarly to GHCB MSR-based termination requests that are already
    available to SEV-ES guests via earlier versions of the GHCB protocol.
    
    See 'Termination Request' in the 'Invoking VMGEXIT' section of the GHCB
    specification for more details.
    
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    014b389 View commit details
    Browse the repository at this point in the history
  135. KVM: SEV: Implement gmem hook for initializing private pages

    This will handle RMP table updates and direct map changes needed to put
    a page into a private state before mapping it into an SEV-SNP guest.
    
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    14fd433 View commit details
    Browse the repository at this point in the history
  136. KVM: SEV: Implement gmem hook for invalidating private pages

    Implement a platform hook to do the work of restoring the direct map
    entries of gmem-managed pages and transitioning the corresponding RMP
    table entries back to the default shared/hypervisor-owned state.
    
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    bbb7722 View commit details
    Browse the repository at this point in the history
  137. KVM: x86: Add gmem hook for determining max NPT mapping level

    In the case of SEV-SNP, whether or not a 2MB page can be mapped via a
    2MB mapping in the guest's nested page table depends on whether or not
    any subpages within the range have already been initialized as private
    in the RMP table. The existing mixed-attribute tracking in KVM is
    insufficient here, for instance:
    
      - gmem allocates 2MB page
      - guest issues PVALIDATE on 2MB page
      - guest later converts a subpage to shared
      - SNP host code issues PSMASH to split 2MB RMP mapping to 4K
      - KVM MMU splits NPT mapping to 4K
    
    At this point there are no mixed attributes, and KVM would normally
    allow for 2MB NPT mappings again, but this is actually not allowed
    because the RMP table mappings are 4K and cannot be promoted on the
    hypervisor side, so the NPT mappings must still be limited to 4K to
    match this.
    
    Add a hook to determine the max NPT mapping size in situations like
    this.
    
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    bb3903e View commit details
    Browse the repository at this point in the history
  138. KVM: SEV: Avoid WBINVD for HVA-based MMU notifications for SNP

    With SNP/guest_memfd, private/encrypted memory should not be mappable,
    and MMU notifications for HVA-mapped memory will only be relevant to
    unencrypted guest memory. Therefore, the rationale behind issuing a
    wbinvd_on_all_cpus() in sev_guest_memory_reclaimed() should not apply
    for SNP guests and can be ignored.
    
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    [mdr: Add some clarifications in commit]
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    ashkalra authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    895f4fc View commit details
    Browse the repository at this point in the history
  139. KVM: SVM: Add module parameter to enable the SEV-SNP

    Add a module parameter than can be used to enable or disable the SEV-SNP
    feature. Now that KVM contains the support for the SNP set the GHCB
    hypervisor feature flag to indicate that SNP is supported.
    
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    codomania authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    a7bf556 View commit details
    Browse the repository at this point in the history
  140. KVM: SEV: Provide support for SNP_GUEST_REQUEST NAE event

    Version 2 of GHCB specification added support for the SNP Guest Request
    Message NAE event. The event allows for an SEV-SNP guest to make
    requests to the SEV-SNP firmware through hypervisor using the
    SNP_GUEST_REQUEST API defined in the SEV-SNP firmware specification.
    
    This is used by guests primarily to request attestation reports from
    firmware. There are other request types are available as well, but the
    specifics of what guest requests are being made are opaque to the
    hypervisor, which only serves as a proxy for the guest requests and
    firmware responses.
    
    Implement handling for these events.
    
    Co-developed-by: Alexey Kardashevskiy <aik@amd.com>
    Signed-off-by: Alexey Kardashevskiy <aik@amd.com>
    Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
    Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
    [mdr: ensure FW command failures are indicated to guest, drop extended
     request handling to be re-written as separate patch, massage commit]
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    codomania authored and mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    b9b0085 View commit details
    Browse the repository at this point in the history
  141. crypto: ccp: Add the SNP_SET_CONFIG_{START,END} commands

    These commands can be used to create a transaction such that commands
    that update the reported TCB, such as SNP_SET_CONFIG/SNP_COMMIT, and
    updates to userspace-supplied certificates, can be handled atomically
    relative to any extended guest requests issued by any SNP guests while
    the updates are taking place.
    
    Without this interface, there is a risk that a guest will be given
    certificate information that does not correspond to the VCEK/VLEK used
    to sign a particular attestation report unless all the running guests
    are paused in advance, which would cause disruption to all guests in the
    system even if no attestation requests are being made. Even then, care
    is needed to ensure that KVM does not pass along certificate information
    that was fetched from userspace in advance of the guest being paused.
    
    This interface also provides some versatility with how similar firmware
    maintenance activity can be handled in the future without passing
    unnecessary management complexity on to userspace.
    
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    701c89e View commit details
    Browse the repository at this point in the history
  142. KVM: SEV: Provide support for SNP_EXTENDED_GUEST_REQUEST NAE event

    Version 2 of GHCB specification added support for the SNP Extended Guest
    Request Message NAE event. This event serves a nearly identical purpose
    to the previously-added SNP_GUEST_REQUEST event, but allows for
    additional certificate data to be supplied via an additional
    guest-supplied buffer to be used mainly for verifying the signature of
    an attestation report as returned by firmware.
    
    This certificate data is supplied by userspace, so unlike with
    SNP_GUEST_REQUEST events, SNP_EXTENDED_GUEST_REQUEST events are first
    forwarded to userspace via a KVM_EXIT_VMGEXIT exit type, and then the
    firmware request is made only afterward.
    
    Implement handling for these events.
    
    Since there is a potential for race conditions where the
    userspace-supplied certificate data may be out-of-sync relative to the
    reported TCB that firmware will use when signing attestation reports,
    make use of the transaction/synchronization mechanisms added by the
    SNP_SET_CONFIG_{START,END} SEV device ioctls such that the guest will be
    told to retry the request when an update to reported TCB or
    userspace-supplied certificates may have occurred or is in progress
    while an extended guest request is being processed.
    
    Signed-off-by: Michael Roth <michael.roth@amd.com>
    mdroth committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    cc25683 View commit details
    Browse the repository at this point in the history