From: Ryan Harper Subject: adding fields to vcpu_info_t Date: Tue, 5 Apr 2005 12:06:21 -0500 Message-ID: <20050405170621.GA3347@luffy.austin.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Kj7319i9nmIyA2yE" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I've been trying to add a field into vcpu_info_t for some per-vcpu flags. Attached is a small patch that does nothing more than add the field. However, it causes problems when booting dom0 smp, so I obviously need to update some code elsewhere to account for the change. Can anyone give me a pointer to where I should making additional changes when adding a new field to vcpu_info_t ? Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 ryanh@us.ibm.com --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="simple.patch" --- a/xen/include/public/xen.h 2005-04-04 22:16:33.000000000 -0500 +++ b/xen/include/public/xen.h 2005-04-05 11:41:25.000000000 -0500 @@ -335,8 +335,9 @@ u8 evtchn_upcall_mask; /* 1 */ u8 pad0, pad1; u32 evtchn_pending_sel; /* 4 */ - arch_vcpu_info_t arch; /* 8 */ -} PACKED vcpu_info_t; /* 8 + arch */ + u32 v_flags; /* 8 */ + arch_vcpu_info_t arch; /* 12 */ +} PACKED vcpu_info_t; /* 12 + arch */ /* * Xen/kernel shared data -- pointer provided in start_info. --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="simple.oops" ------------[ cut here ]------------ kernel BUG at :5097! invalid operand: 0000 [#2] PREEMPT SMP DEBUG_PAGEALLOC Modules linked in: CPU: 1 EIP: 0061:[] Not tainted VLI EFLAGS: 00010202 (2.6.11-xen0-smp) EIP is at __find_get_block+0x119/0x120 eax: fbffc00c ebx: fbffc000 ecx: de2ee000 edx: dff59df8 esi: decfae2c edi: 00180205 ebp: 00000000 esp: de2efe1c ds: 007b es: 007b ss: 0069 Process rcS (pid: 1025, threadinfo=de2ee000 task=de2b1af0) Stack: 00000012 00000000 00000000 00001000 00180205 decfae2c 00000000 c015d79b decfae2c 00180205 00001000 de2eff14 00000000 ddfabea0 c01c16a3 decfae2c 00180205 00001000 de2efe74 00000000 00000001 de47dd8c 00000010 08101038 Call Trace: [] __getblk+0x2b/0x60 [] ext3_getblk+0x93/0x260 [] do_no_page+0x64/0x380 [] ext3_bread+0x33/0xb0 [] ext3_readdir+0x13e/0x4f0 [] do_page_fault+0x19c/0x6a7 [] do_brk+0x256/0x2e0 [] vfs_readdir+0x79/0xa0 [] filldir64+0x0/0x100 [] sys_getdents64+0x74/0xca [] filldir64+0x0/0x100 [] sys_brk+0xee/0x120 [] syscall_call+0x7/0xb --Kj7319i9nmIyA2yE Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Kj7319i9nmIyA2yE--