|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH 1/4] xen: Take into account Xen control interface
To: |
Daniel Kiper <dkiper@xxxxxxxxxxxx> |
Subject: |
Re: [Xen-devel] [PATCH 1/4] xen: Take into account Xen control interface changes since Xen Ver. 4.1 |
From: |
Rajendra Bele <belerajendra753@xxxxxxxxx> |
Date: |
Mon, 22 Aug 2011 12:09:45 +0545 |
Cc: |
olaf@xxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, ian.campbell@xxxxxxxxxx, konrad.wilk@xxxxxxxxxx, kexec@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, horms@xxxxxxxxxxxx, vgoyal@xxxxxxxxxx |
Delivery-date: |
Sun, 21 Aug 2011 23:25:51 -0700 |
Dkim-signature: |
v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=a1bGrsaNczO/3dKy7S4nM8w4VcEqmqXVPrNF2QhFA6c=; b=E9wtMrOwXwWA8hlCJnUDf88FIlLxchHJdexaWi7Skw0pMH/xDD1GmHq004s7AfLyCz wPM8kdmbbPsB3/E+xfMxmIPYfzqcE91yHs/WTdieMADSct5xve009YnbrBL6t92pMjZR EeG2p4wO6HRCCW+WVcPvfTYN2YMokvk13tTyw= |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<20110821135139.GB17323@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<20110821135139.GB17323@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
Dear Friends, I am pursuing Ph.D. in virtualization, I want to study detail architecture and implementation of Xen As I wanted to start from scratch ,can you suggest some guidance or resource for it. Thanking you
Rajendra Bele
Pune,India
On Sun, Aug 21, 2011 at 7:36 PM, Daniel Kiper <dkiper@xxxxxxxxxxxx> wrote:
xc_interface_open() receive three arguments instead of void and returns pointer to xc_interface type instead of int since Xen Ver. 4.1. Take into
account that and allow kexec-tools compilation with all versions of Xen.
Signed-off-by: Daniel Kiper <dkiper@xxxxxxxxxxxx> --- kexec/crashdump-xen.c | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/kexec/crashdump-xen.c b/kexec/crashdump-xen.c index b347764..9dfabf8 100644 --- a/kexec/crashdump-xen.c +++ b/kexec/crashdump-xen.c @@ -126,19 +126,32 @@ unsigned long xen_architecture(struct crash_elf_info *elf_info)
{ unsigned long machine = elf_info->machine; #ifdef HAVE_LIBXENCTRL - int xc, rc; + int rc; xen_capabilities_info_t capabilities; +#ifdef XENCTRL_HAS_XC_INTERFACE + xc_interface *xc;
+#else + int xc; +#endif
if (!xen_present()) goto out;
memset(capabilities, '0', XEN_CAPABILITIES_INFO_LEN);
+#ifdef XENCTRL_HAS_XC_INTERFACE + xc = xc_interface_open(NULL, NULL, 0);
+ if ( !xc ) { + fprintf(stderr, "failed to open xen control interface.\n"); + goto out; + } +#else xc = xc_interface_open(); if ( xc == -1 ) {
fprintf(stderr, "failed to open xen control interface.\n"); goto out; } +#endif
rc = xc_version(xc, XENVER_capabilities, &capabilities[0]); if ( rc == -1 ) {
-- 1.5.6.5
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|