vmm: validate icr value
authorCorvin Köhne <c.koehne@beckhoff.com>
Wed, 12 Oct 2022 09:19:32 +0000 (11:19 +0200)
committerEmmanuel Vadot <manu@FreeBSD.org>
Fri, 14 Oct 2022 10:03:05 +0000 (12:03 +0200)
commit2a2a64c4b93f1a135f62f54db54f4ec2f89f9127
tree5a2a30f803303e90eefdebc04dc2bab63c1901ca
parentf56801d6d9777ba0a7e398d370bb755de8102697
vmm: validate icr value

Not all combinations of icr values are allowed. Neither Intel nor AMD
document what happens when an invalid value is written to the icr.
Ignore the IPI. So, the guest will note that the IPI wasn't delivered.

Reviewed by: jhb
Differential Revision:  https://reviews.freebsd.org/D36946
Sponsored by:           Beckhoff Automation GmbH & Co. KG
sys/amd64/vmm/io/vlapic.c