From: Mohammed Gamal Subject: [PATCH 1/2][RESEND] Update kvm.h in qemu-kvm tree Date: Tue, 1 Sep 2009 03:24:47 +0200 Message-ID: <1251768288-27627-1-git-send-email-m.gamal005@gmail.com> Cc: kvm@vger.kernel.org, mtosatti@redhat.com, Mohammed Gamal To: avi@redhat.com Return-path: Received: from mail-fx0-f217.google.com ([209.85.220.217]:62418 "EHLO mail-fx0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751091AbZIABYt (ORCPT ); Mon, 31 Aug 2009 21:24:49 -0400 Received: by fxm17 with SMTP id 17so3180613fxm.37 for ; Mon, 31 Aug 2009 18:24:50 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: Update struct kvm_run and KVM_EXIT_* constants to match the one in the kernel-space tree Signed-off-by: Mohammed Gamal --- kvm/include/linux/kvm.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/kvm/include/linux/kvm.h b/kvm/include/linux/kvm.h index ff1025d..801865d 100644 --- a/kvm/include/linux/kvm.h +++ b/kvm/include/linux/kvm.h @@ -135,6 +135,10 @@ struct kvm_pit_config { #define KVM_EXIT_S390_RESET 14 #define KVM_EXIT_DCR 15 #define KVM_EXIT_NMI 16 +#define KVM_EXIT_INTERNAL_ERROR 17 + +/* For KVM_EXIT_INTERNAL_ERROR */ +#define KVM_INTERNAL_ERROR_EMULATION 1 /* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */ struct kvm_run { @@ -221,6 +225,9 @@ struct kvm_run { __u32 data; __u8 is_write; } dcr; + struct { + __u32 suberror; + } internal; /* Fix the size of the union. */ char padding[256]; }; -- 1.6.0.4