From 9b0ba3c866b45e5419023cbaf618e8218f41f68b Mon Sep 17 00:00:00 2001 From: grehan Date: Fri, 5 Apr 2013 22:14:07 +0000 Subject: config checksum is over the entire fixed portion, not just the config header. FreeBSD doesn't check this but other o/s's do. Obtained from: NetApp --- usr.sbin/bhyve/mptbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/bhyve') diff --git a/usr.sbin/bhyve/mptbl.c b/usr.sbin/bhyve/mptbl.c index ece71cd..74db2ea 100644 --- a/usr.sbin/bhyve/mptbl.c +++ b/usr.sbin/bhyve/mptbl.c @@ -395,7 +395,7 @@ mptable_build(struct vmctx *ctx, int ncpu, int ioapic) } mpch->base_table_length = curraddr - (char *)mpch; - mpch->checksum = mpt_compute_checksum(mpch, sizeof(*mpch)); + mpch->checksum = mpt_compute_checksum(mpch, mpch->base_table_length); return (0); } -- cgit v1.1