<div>Dear Friends,<br>I am pursuing Ph.D. in virtualization,<br>I want to study detail architecture and implementation of Xen <br>As I wanted to start from scratch ,can you suggest some guidance or resource for it.<br>Thanking you</div>
<div>Rajendra Bele</div>
<div>Pune,India<br><br></div>
<div class="gmail_quote">On Sun, Aug 21, 2011 at 7:36 PM, Daniel Kiper <span dir="ltr"><<a href="mailto:dkiper@net-space.pl">dkiper@net-space.pl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">xc_interface_open() receive three arguments instead of void and returns<br>pointer to xc_interface type instead of int since Xen Ver. 4.1. Take into<br>
account that and allow kexec-tools compilation with all versions of Xen.<br><br>Signed-off-by: Daniel Kiper <<a href="mailto:dkiper@net-space.pl">dkiper@net-space.pl</a>><br>---<br> kexec/crashdump-xen.c | 15 ++++++++++++++-<br>
1 files changed, 14 insertions(+), 1 deletions(-)<br><br>diff --git a/kexec/crashdump-xen.c b/kexec/crashdump-xen.c<br>index b347764..9dfabf8 100644<br>--- a/kexec/crashdump-xen.c<br>+++ b/kexec/crashdump-xen.c<br>@@ -126,19 +126,32 @@ unsigned long xen_architecture(struct crash_elf_info *elf_info)<br>
{<br> unsigned long machine = elf_info->machine;<br> #ifdef HAVE_LIBXENCTRL<br>- int xc, rc;<br>+ int rc;<br> xen_capabilities_info_t capabilities;<br>+#ifdef XENCTRL_HAS_XC_INTERFACE<br>+ xc_interface *xc;<br>
+#else<br>+ int xc;<br>+#endif<br><br> if (!xen_present())<br> goto out;<br><br> memset(capabilities, '0', XEN_CAPABILITIES_INFO_LEN);<br><br>+#ifdef XENCTRL_HAS_XC_INTERFACE<br>+ xc = xc_interface_open(NULL, NULL, 0);<br>
+ if ( !xc ) {<br>+ fprintf(stderr, "failed to open xen control interface.\n");<br>+ goto out;<br>+ }<br>+#else<br> xc = xc_interface_open();<br> if ( xc == -1 ) {<br>
fprintf(stderr, "failed to open xen control interface.\n");<br> goto out;<br> }<br>+#endif<br><br> rc = xc_version(xc, XENVER_capabilities, &capabilities[0]);<br> if ( rc == -1 ) {<br>
<font color="#888888">--<br>1.5.6.5<br><br>_______________________________________________<br>Xen-devel mailing list<br><a href="mailto:Xen-devel@lists.xensource.com">Xen-devel@lists.xensource.com</a><br><a href="http://lists.xensource.com/xen-devel" target="_blank">http://lists.xensource.com/xen-devel</a><br>
</font></blockquote></div><br>