]> xenbits.xensource.com Git - xen.git/commit
xen/livepatch: fix livepatch tests
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 28 Nov 2023 17:41:31 +0000 (18:41 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 29 Nov 2023 10:46:42 +0000 (10:46 +0000)
commit902377b690f42ddf44ae91c4b0751d597f1cd694
tree9edb96948aadaede4e4c402e22689bee81eed2be
parentb3d32672861b88bf4c4b50593e2ce5000a0f16c5
xen/livepatch: fix livepatch tests

The current set of in-tree livepatch tests in xen/test/livepatch started
failing after the constify of the payload funcs array, and the movement of the
status data into a separate array.

Fix the tests so they respect the constness of the funcs array and also make
use of the new location of the per-func state data.

Fixes: 82182ad7b46e ('livepatch: do not use .livepatch.funcs section to store internal state')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
xen/test/livepatch/xen_action_hooks.c
xen/test/livepatch/xen_action_hooks_marker.c
xen/test/livepatch/xen_action_hooks_noapply.c
xen/test/livepatch/xen_action_hooks_nofunc.c
xen/test/livepatch/xen_action_hooks_norevert.c
xen/test/livepatch/xen_prepost_hooks.c
xen/test/livepatch/xen_prepost_hooks_fail.c