aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src
ModeNameSize
-rw-r--r--__init__.py0logstatsplain
-rw-r--r--build_commoncrypto.py786logstatsplain
-rw-r--r--build_constant_time.py716logstatsplain
-rw-r--r--build_openssl.py2611logstatsplain
-rw-r--r--build_padding.py698logstatsplain
d---------commoncrypto511logstatsplain
d---------hazmat_src160logstatsplain
d---------openssl1102logstatsplain
-rw-r--r--utils.py3038logstatsplain
ground-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/* 
 * This file is subject to the terms and conditions of the GNU General
 * Public License.  See the file "COPYING" in the main directory of
 * this archive for more details.
 *
 * Copyright (C) 2005 by Christian Limpach
 *
 */

#include <err.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>

#include <xenguest.h>

int
main(int argc, char **argv)
{
    unsigned int xc_fd, io_fd, domid, nr_pfns, store_evtchn, console_evtchn;
    int ret;
    unsigned long store_mfn, console_mfn;

    if (argc != 7)
	errx(1,
	     "usage: %s xcfd iofd domid nr_pfns store_evtchn console_evtchn",
	     argv[0]);

    xc_fd = atoi(argv[1]);
    io_fd = atoi(argv[2]);
    domid = atoi(argv[3]);
    nr_pfns = atoi(argv[4]);
    store_evtchn = atoi(argv[5]);
    console_evtchn = atoi(argv[6]);

    ret = xc_linux_restore(xc_fd, io_fd, domid, nr_pfns, store_evtchn,
			   &store_mfn, console_evtchn, &console_mfn);
    if (ret == 0) {
	printf("store-mfn %li\n", store_mfn);
	printf("console-mfn %li\n", console_mfn);
	fflush(stdout);
    }
    return ret;
}