summary refs log tree commit diff stats
path: root/backends/cryptodev-vhost-user.c
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2022-10-24 11:20:15 +0200
committerCédric Le Goater <clg@kaod.org>2022-10-24 11:20:15 +0200
commitb84a9482a3c9e3b6fbdf1fd4b0477e4a7a51683e (patch)
tree3059a9ebf45c60cab849ad5504abdf3d39fc3241 /backends/cryptodev-vhost-user.c
parentdb96605a49b334eeb2a5d1cc12981778f7d792aa (diff)
downloadfocaccia-qemu-b84a9482a3c9e3b6fbdf1fd4b0477e4a7a51683e.tar.gz
focaccia-qemu-b84a9482a3c9e3b6fbdf1fd4b0477e4a7a51683e.zip
aspeed/smc: Cache AspeedSMCClass
Store a reference on the AspeedSMC class under the flash object and
use it when accessing the flash contents. Avoiding the class cast
checkers in these hot paths improves performance by 10% when running
the aspeed avocado tests.

Message-Id: <20220923084803.498337-7-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'backends/cryptodev-vhost-user.c')
0 files changed, 0 insertions, 0 deletions