From patchwork Thu Oct 29 09:12:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 56433 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9T9D1fl030071 for ; Thu, 29 Oct 2009 09:13:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753344AbZJ2JMz (ORCPT ); Thu, 29 Oct 2009 05:12:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753671AbZJ2JMy (ORCPT ); Thu, 29 Oct 2009 05:12:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29859 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752911AbZJ2JMy (ORCPT ); Thu, 29 Oct 2009 05:12:54 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9T9CxxG010114 for ; Thu, 29 Oct 2009 05:12:59 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9T9CwKB007139; Thu, 29 Oct 2009 05:12:59 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 7413C18D410; Thu, 29 Oct 2009 11:12:57 +0200 (IST) Date: Thu, 29 Oct 2009 11:12:57 +0200 From: Gleb Natapov To: avi@redhat.com, mtosatti@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH] tests: The order of the fields are in reverse one isr stack. Message-ID: <20091029091257.GZ29477@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/kvm/user/test/x86/apic.c b/kvm/user/test/x86/apic.c index 4e89c77..b6718ec 100644 --- a/kvm/user/test/x86/apic.c +++ b/kvm/user/test/x86/apic.c @@ -19,11 +19,11 @@ typedef struct { } idt_entry_t; typedef struct { - ulong rflags; - ulong cs; - ulong rip; - ulong func; ulong regs[sizeof(ulong)*2]; + ulong func; + ulong rip; + ulong cs; + ulong rflags; } isr_regs_t; #ifdef __x86_64__