From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dushyant Behl Subject: Refactoring mempaging code from xenpaging to libxc and few updates Date: Fri, 8 Aug 2014 02:10:09 +0530 Message-ID: <1407444012-31830-1-git-send-email-myselfdushyantbehl@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: David Scott , Stefano Stabellini , Andrew Cooper , Ian Jackson , Andres Lagar Cavilla , Dushyant Behl List-Id: xen-devel@lists.xenproject.org The following patches refactor memepaging code from xenpaging to libxc - [PATCH v3 1/3] tools/libxc: refactored mempaging code from xenpaging This patch adds two routines xc_mem_paging_ring_setup and xc_mem_paging_ring_teardown to libxc at the path tools/libxc/xc_mem_paging_setup.c, which is a new file. [PATCH v3 2/3] tools/libxc/xc_mem_paging_setup.c: replacing deprecated functions Replaces calls to deprecated function xc_map_foreign_batch with calls to xc_map_foreign_bulk. [PATCH v3 3/3] tools/libxc/xc_mem_paging_setup.c: FIX- Race condition Fix for a known race condition bug in mempaging ring setup code, this race condition is actually simmilar to that concerned by XSA-99. This patch tries to take care of all the points mentioned in XSA-99, along with clearing the ringpage to remove any bogus input. Signed-off-by: Dushyant Behl