view common/include/xen_public.h @ 685:c13ccf5a629b

Fixed a bug in the dma routines which was causing memory corruption. In some cases when Windows gave an MDL that was longer than the buffer to be dma'd, the end of the buffer would be overwritten. The only time I am aware of this occuring is on one particular map in Call Of Duty 4.

Split out the dma routines from xenpci_pdo.c into xenpci_dma.c
author James Harper <>
date Wed Oct 14 14:46:39 2009 +1100 (2009-10-14)
parents 1bae3638ab55
line source
1 /*
2 PV Drivers for Windows Xen HVM Domains
3 Copyright (C) 2007 James Harper
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
20 #if !defined(_XEN_PUBLIC_H_)
21 #define _XEN_PUBLIC_H_
23 // {5C568AC5-9DDF-4FA5-A94A-39D67077819C}
24 DEFINE_GUID(GUID_XEN_IFACE, 0x5C568AC5, 0x9DDF, 0x4FA5, 0xA9, 0x4A, 0x39, 0xD6, 0x70, 0x77, 0x81, 0x9C);
26 // {14CE175A-3EE2-4fae-9252-00DBD84F018E}
27 DEFINE_GUID(GUID_DEVINTERFACE_XENBUS, 0x14ce175a, 0x3ee2, 0x4fae, 0x92, 0x52, 0x00, 0xdb, 0xd8, 0x4f, 0x01, 0x8e);
29 // {CC8B3D31-0D8C-474c-94D4-8D5F76FF9727}
30 DEFINE_GUID(GUID_DEVINTERFACE_EVTCHN, 0xcc8b3d31, 0x0d8c, 0x474c, 0x94, 0xd4, 0x8d, 0x5f, 0x76, 0xff, 0x97, 0x27);
32 // {0B66CEF6-7B6B-4324-BF31-D0F57EA22D30}
33 DEFINE_GUID(GUID_DEVINTERFACE_GNTDEV, 0x0b66cef6, 0x7b6b, 0x4324, 0xbf, 0x31, 0xd0, 0xf5, 0x7e, 0xa2, 0x2d, 0x30);
36 #endif