Don't mislead callers into thinking that a non-implemented int15 service succeeded. Cc: Cyrill Gorcunov <gorcunov@xxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Sasha Levin <levinsasha928@xxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/bios/int15.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/tools/kvm/bios/int15.c b/tools/kvm/bios/int15.c index e1a1ce4..faf5343 100644 --- a/tools/kvm/bios/int15.c +++ b/tools/kvm/bios/int15.c @@ -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; } } -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html