mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-04 20:51:28 +00:00
kvm tools, bios: Set CF for non-supported services
Don't mislead callers into thinking that a non-implemented int15 service succeeded. Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
677a2bf1ac
commit
0e753db4a3
@@ -2,11 +2,17 @@
|
||||
|
||||
#include "kvm/e820.h"
|
||||
|
||||
#include <asm/processor-flags.h>
|
||||
|
||||
bioscall void int15_handler(struct biosregs *regs)
|
||||
{
|
||||
switch (regs->eax) {
|
||||
case 0xe820:
|
||||
e820_query_map(regs);
|
||||
break;
|
||||
default:
|
||||
/* Set CF to indicate failure. */
|
||||
regs->eflags |= X86_EFLAGS_CF;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user