aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/xencomm.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix emacs local variable block to use correct C style variable.David Vrabel2013-02-211-1/+1
| | | | | | | The emacs variable to set the C style from a local variable block is c-file-style, not c-set-style. Signed-off-by: David Vrabel <david.vrabel@citrix.com
* printk: prefer %#x et at over 0x%xJan Beulich2012-09-211-2/+2
| | | | | | | | | Performance is not an issue with printk(), so let the function do minimally more work and instead save a byte per affected format specifier. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
* Introduce clear_user and clear_guestStefano Stabellini2012-01-231-0/+111
| | | | | | | | | | | | Introduce clear_user for x86 and ia64, shamelessly taken from Linux. The x86 version is the 32 bit clear_user implementation. Introduce clear_guest for x86 and ia64. The x86 implementation is based on clear_user and a new clear_user_hvm function. The ia64 implementation is actually in xencomm and it is based on xencomm_copy_to_guest. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Jan Beulich <JBeulich@suse.com> Committed-by: Keir Fraser <keir@xen.org>
* [IA64] Remove compilation warning and typo caused by 19268:4b7d638a8b89Keir Fraser2009-03-051-1/+1
| | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* Be careful with page_get_owner() now that owner field can be clobberedKeir Fraser2009-03-041-17/+9
| | | | | | | by some users. Introduce get_page_owner_and_reference() where that can be more useful. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xencomm: Fix a trivial warning.Keir Fraser2008-04-241-1/+1
| | | | Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* xencomm: add support for log dirty modeKeir Fraser2008-04-071-0/+1
| | | | Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* Improve commenting of xencomm_ctxt_next().kfraser@localhost.localdomain2007-08-291-1/+17
| | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* xencomm: Code style cleanups.kfraser@localhost.localdomain2007-08-281-60/+65
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [xen, xencomm] xencomm multiple page supportkfraser@localhost.localdomain2007-08-281-31/+60
| | | | | | | | Current implementation doesn't allow struct xencomm_desc::address array to be more than single page. On IA64 it causes 64GB+ domain creation failure. This patch generalizes xencomm to allow multipage Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [xen, xencomm] fix various xencomm invalid racy access.kfraser@localhost.localdomain2007-08-281-86/+226
| | | | | | | | | | | | | | | | | | | | - Xencomm should check struct xencomm_desc alignment. - Xencomm should check whether struct xencomm_desc itself (8 bytes) doesn't cross page boundary. Otherwise a hostile guest kernel can pass such a pointer that may across page boundary. Then xencomm accesses an unrelated page. - Xencomm shouldn't access struct xencomm_desc::nr_addrs multiple times. Copy it to local area and use the copy. Otherwise a hostile guest can modify at the same time. - Xencomm should check whether struct xencomm_desc::address[] array crosses page boundary. Otherwise xencomm may access unrelated pages. - Xencomm should get_page()/put_page() after address conversion from paddr to maddr because xen supports SMP and balloon driver. Otherwise another vcpu may free the page at the same time. Such a domain behaviour doesn't make sense, however nothing prevents it. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* xencomm: Fix for code style.kfraser@localhost.localdomain2007-08-141-81/+72
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [xen, xencomm] preparetion for xencomm consolidation.kfraser@localhost.localdomain2007-08-141-8/+21
| | | | | | | | Xen/powerpc runs in real mode so that it uses maddr interchangably with vaddr. But it isn't the case in xen/ia64. It is necessary to convert maddr to vaddr to access the page. maddr_to_virt() doesn't convert on powerpc, so it should work on both archtechture. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [xen, xencomm] xencomm trivial bug fixkfraser@localhost.localdomain2007-08-141-1/+8
| | | | | | - fix return address of xencomm_copy_to_guest() - fix xencomm_add_offset() Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* Fix xencomm_copy_{from, to}_guest.kfraser@localhost.localdomain2007-01-121-2/+2
| | | | | | It should not call paddr_to_maddr() with invalid address. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [POWERPC] Merge in outstanding changes from xenppc-unstable.hg.Hollis Blanchard2006-12-121-0/+316
It's a long story, but basically a small divergence in xenppc-unstable meant a large number of changesets couldn't be directly imported to xen-unstable, so this changeset includes all of them. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>