[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Re: [Qemu-devel] [PATCH 09/15] xen: Initialize event channels and io rings


  • To: stefano.stabellini@xxxxxxxxxxxxx
  • From: Blue Swirl <blauwirbel@xxxxxxxxx>
  • Date: Thu, 12 Aug 2010 18:42:46 +0000
  • Cc: Anthony.Perard@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, qemu-devel@xxxxxxxxxx
  • Delivery-date: Thu, 12 Aug 2010 11:43:53 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=GDzwM6P33xhHQmS1zk1v+ReecneHYyM6Is2bN7pFl7zIVDJe4PffDju6ehm266HkN+ XktGzQLZiu34titc9U9jpAJfbTP58vWOEVB2mGjMQ7mdn9x45w/pJIxLBV09QjewM1jw W9MTyrGHbmlm5Yr/jN28umudK7q4LL0tIaTmU=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On Thu, Aug 12, 2010 at 2:09 PM,  <stefano.stabellini@xxxxxxxxxxxxx> wrote:
> From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
>
> Open and bind event channels; map ioreq and buffered ioreq rings.
>
> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
> ---
> Âhw/xen_machine_fv.c  |  25 ++++
> Âtarget-xen/cpu.h   Â|  Â1 +
> Âtarget-xen/helper.c  | Â362 
> +++++++++++++++++++++++++++++++++++++++++++++++++
> Âtarget-xen/qemu-xen.h | Â Â2 +
> Â4 files changed, 390 insertions(+), 0 deletions(-)
>
> diff --git a/hw/xen_machine_fv.c b/hw/xen_machine_fv.c
> index a6e778a..b1bc88d 100644
> --- a/hw/xen_machine_fv.c
> +++ b/hw/xen_machine_fv.c
> @@ -22,6 +22,9 @@
> Â* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> Â* THE SOFTWARE.
> Â*/
> +#include "config.h"
> +
> +#include <sys/mman.h>
>
> Â#include "hw.h"
> Â#include "pc.h"
> @@ -71,12 +74,34 @@ static void xen_init_fv(ram_addr_t ram_size,
>
> Â Â CPUState *env;
>
> + Â Âunsigned long ioreq_pfn;
> + Â Âextern void *shared_page;
> + Â Âextern void *buffered_io_page;

These should be defined in a header file.

> +
> Â Â /* Initialize backend core & drivers */
> Â Â if (xen_dm_init() != 0) {
> Â Â Â Â fprintf(stderr, "%s: xen backend core setup failed\n", __FUNCTION__);
> Â Â Â Â exit(1);
> Â Â }
>
> + Â Âxc_get_hvm_param(xen_xc, xen_domid, HVM_PARAM_IOREQ_PFN, &ioreq_pfn);
> + Â Âfprintf(stderr, "shared page at pfn %lx\n", ioreq_pfn);
> + Â Âshared_page = xc_map_foreign_range(xen_xc, xen_domid, XC_PAGE_SIZE,
> + Â Â Â Â Â ÂPROT_READ|PROT_WRITE, ioreq_pfn);
> + Â Âif (shared_page == NULL) {
> + Â Â Â Âfprintf(stderr, "map shared IO page returned error %d handle=%p\n", 
> errno, xen_xc);

hw_error()?

> + Â Â Â Âexit(-1);
> + Â Â}
> +
> + Â Âxc_get_hvm_param(xen_xc, xen_domid, HVM_PARAM_BUFIOREQ_PFN, &ioreq_pfn);
> + Â Âfprintf(stderr, "buffered io page at pfn %lx\n", ioreq_pfn);
> + Â Âbuffered_io_page = xc_map_foreign_range(xen_xc, xen_domid, XC_PAGE_SIZE,
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ÂPROT_READ|PROT_WRITE, ioreq_pfn);
> + Â Âif (buffered_io_page == NULL) {
> + Â Â Â Âfprintf(logfile, "map buffered IO page returned error %d\n", errno);
> + Â Â Â Âexit(-1);
> + Â Â}
> +
> Â Â /* Initialize a dummy CPU */
> Â Â if (cpu_model == NULL) {
> Â#ifdef TARGET_X86_64
> diff --git a/target-xen/cpu.h b/target-xen/cpu.h
> index 5a45d1c..573241f 100644
> --- a/target-xen/cpu.h
> +++ b/target-xen/cpu.h
> @@ -72,6 +72,7 @@ typedef struct CPUXenState {
>
> ÂCPUXenState *cpu_xen_init(const char *cpu_model);
> Âint cpu_xen_exec(CPUXenState *s);
> +void cpu_xen_close(CPUXenState *s);
>
> Âint cpu_get_pic_interrupt(CPUXenState *s);
> Âvoid cpu_set_ferr(CPUX86State *s);
> diff --git a/target-xen/helper.c b/target-xen/helper.c
> index 8cb7771..4571ac0 100644
> --- a/target-xen/helper.c
> +++ b/target-xen/helper.c
> @@ -18,25 +18,77 @@
> Â* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA Â02111-1307 ÂUSA
> Â*/
>
> +#include "config.h"
> +
> +#include <inttypes.h>
> +
> +#include <xenctrl.h>
> +#include <xen/hvm/ioreq.h>
> +
> Â#include "cpu.h"
> Â#include "qemu-xen.h"
> Â#include "xenstore.h"
> +#include "hw/xen_backend.h"
> +
> +long time_offset = 0;
> +
> +shared_iopage_t *shared_page = NULL;
> +
> +#define BUFFER_IO_MAX_DELAY Â100
> +buffered_iopage_t *buffered_io_page = NULL;
> +QEMUTimer *buffered_io_timer;
> +
> +/* the evtchn fd for polling */
> +int xce_handle = -1;
> +
> +/* which vcpu we are serving */
> +int send_vcpu = 0;
> +
> +/* the evtchn port for polling the notification, */
> +evtchn_port_t *ioreq_local_port;
>
> ÂCPUXenState *cpu_xen_init(const char *cpu_model)
> Â{
> Â Â CPUXenState *env = NULL;
> Â Â static int inited;
> + Â Âint i, rc;
>
> Â Â env = qemu_mallocz(sizeof(CPUXenState));
> Â Â if (!env)
> Â Â Â Â return NULL;
> Â Â cpu_exec_init(env);
>
> + Â Â/* There is no shared_page for PV, we're done now */
> + Â Âif (shared_page == NULL)
> + Â Â Â Âreturn env;
> +
> + Â Âioreq_local_port =
> + Â Â Â Â(evtchn_port_t *)qemu_mallocz(smp_cpus * sizeof(evtchn_port_t));
> + Â Âif (!ioreq_local_port)
> + Â Â Â Âreturn NULL;
> +
> Â Â /* init various static tables */
> Â Â if (!inited) {
> Â Â Â Â inited = 1;
>
> Â Â Â Â cpu_single_env = env;
> +
> + Â Â Â Âxce_handle = xc_evtchn_open();
> + Â Â Â Âif (xce_handle == -1) {
> + Â Â Â Â Â Âperror("open");
> + Â Â Â Â Â Âreturn NULL;
> + Â Â Â Â}
> +
> + Â Â Â Â/* FIXME: how about if we overflow the page here? */
> + Â Â Â Âfor (i = 0; i < smp_cpus; i++) {
> + Â Â Â Â Â Ârc = xc_evtchn_bind_interdomain(
> + Â Â Â Â Â Â Â Â Â Âxce_handle, xen_domid, 
> shared_page->vcpu_ioreq[i].vp_eport);
> + Â Â Â Â Â Âif (rc == -1) {
> + Â Â Â Â Â Â Â Âfprintf(stderr, "bind interdomain ioctl error %d\n", errno);
> + Â Â Â Â Â Â Â Âreturn NULL;
> + Â Â Â Â Â Â}
> + Â Â Â Â Â Âioreq_local_port[i] = rc;
> + Â Â Â Â}
> Â Â }
>
> Â Â return env;
> @@ -70,7 +122,317 @@ target_phys_addr_t cpu_get_phys_page_debug(CPUState 
> *env, target_ulong addr)
> Â Â return addr;
> Â}
>
> +// get the ioreq packets from share mem
> +static ioreq_t *__cpu_get_ioreq(int vcpu)

Don't use names with leading underscores.

> +{
> + Â Âioreq_t *req = &shared_page->vcpu_ioreq[vcpu];
> +
> + Â Âif (req->state != STATE_IOREQ_READY) {
> + Â Â Â Âfprintf(stderr, "I/O request not ready: "
> + Â Â Â Â Â Â Â Â"%x, ptr: %x, port: %"PRIx64", "
> + Â Â Â Â Â Â Â Â"data: %"PRIx64", count: %u, size: %u\n",
> + Â Â Â Â Â Â Â Âreq->state, req->data_is_ptr, req->addr,
> + Â Â Â Â Â Â Â Âreq->data, req->count, req->size);
> + Â Â Â Âreturn NULL;
> + Â Â}
> +
> + Â Âxen_rmb(); /* see IOREQ_READY /then/ read contents of ioreq */
> +
> + Â Âreq->state = STATE_IOREQ_INPROCESS;
> + Â Âreturn req;
> +}
> +
> +// use poll to get the port notification
> +// ioreq_vec--out,the
> +// retval--the number of ioreq packet
> +static ioreq_t *cpu_get_ioreq(void)
> +{
> + Â Âint i;
> + Â Âevtchn_port_t port;
> +
> + Â Âport = xc_evtchn_pending(xce_handle);
> + Â Âif (port != -1) {
> + Â Â Â Âfor ( i = 0; i < smp_cpus; i++ )
> + Â Â Â Â Â Âif ( ioreq_local_port[i] == port )
> + Â Â Â Â Â Â Â Âbreak;
> +
> + Â Â Â Âif ( i == smp_cpus ) {
> + Â Â Â Â Â Âfprintf(stderr, "Fatal error while trying to get io event!\n");
> + Â Â Â Â Â Âexit(1);
> + Â Â Â Â}
> +
> + Â Â Â Â// unmask the wanted port again
> + Â Â Â Âxc_evtchn_unmask(xce_handle, port);
> +
> + Â Â Â Â// get the io packet from shared memory
> + Â Â Â Âsend_vcpu = i;
> + Â Â Â Âreturn __cpu_get_ioreq(i);
> + Â Â}
> +
> + Â Â// read error or read nothing
> + Â Âreturn NULL;
> +}
> +
> +static unsigned long do_inp(CPUState *env, unsigned long addr,
> + Â Â Â Âunsigned long size)
> +{
> + Â Âswitch(size) {
> + Â Â Â Âcase 1:
> + Â Â Â Â Â Âreturn cpu_inb(addr);
> + Â Â Â Âcase 2:
> + Â Â Â Â Â Âreturn cpu_inw(addr);
> + Â Â Â Âcase 4:
> + Â Â Â Â Â Âreturn cpu_inl(addr);
> + Â Â Â Âdefault:
> + Â Â Â Â Â Âfprintf(stderr, "inp: bad size: %lx %lx\n", addr, size);
> + Â Â Â Â Â Âexit(-1);
> + Â Â}
> +}
> +
> +static void do_outp(CPUState *env, unsigned long addr,
> + Â Â Â Âunsigned long size, unsigned long val)
> +{
> + Â Âswitch(size) {
> + Â Â Â Âcase 1:
> + Â Â Â Â Â Âreturn cpu_outb(addr, val);
> + Â Â Â Âcase 2:
> + Â Â Â Â Â Âreturn cpu_outw(addr, val);
> + Â Â Â Âcase 4:
> + Â Â Â Â Â Âreturn cpu_outl(addr, val);
> + Â Â Â Âdefault:
> + Â Â Â Â Â Âfprintf(stderr, "outp: bad size: %lx %lx\n", addr, size);
> + Â Â Â Â Â Âexit(-1);
> + Â Â}
> +}
> +
> +static inline void read_physical(uint64_t addr, unsigned long size, void 
> *val)
> +{
> + Â Âreturn cpu_physical_memory_rw((target_phys_addr_t)addr, val, size, 0);
> +}
> +
> +static inline void write_physical(uint64_t addr, unsigned long size, void 
> *val)
> +{
> + Â Âreturn cpu_physical_memory_rw((target_phys_addr_t)addr, val, size, 1);
> +}

Useless redirection?

> +
> +static void cpu_ioreq_pio(CPUState *env, ioreq_t *req)
> +{
> + Â Âint i, sign;
> +
> + Â Âsign = req->df ? -1 : 1;
> +
> + Â Âif (req->dir == IOREQ_READ) {
> + Â Â Â Âif (!req->data_is_ptr) {
> + Â Â Â Â Â Âreq->data = do_inp(env, req->addr, req->size);
> + Â Â Â Â} else {
> + Â Â Â Â Â Âunsigned long tmp;
> +
> + Â Â Â Â Â Âfor (i = 0; i < req->count; i++) {
> + Â Â Â Â Â Â Â Âtmp = do_inp(env, req->addr, req->size);
> + Â Â Â Â Â Â Â Âwrite_physical((target_phys_addr_t) req->data
> + Â Â Â Â Â Â Â Â Â Â Â Â+ (sign * i * req->size),
> + Â Â Â Â Â Â Â Â Â Â Â Âreq->size, &tmp);
> + Â Â Â Â Â Â}
> + Â Â Â Â}
> + Â Â} else if (req->dir == IOREQ_WRITE) {
> + Â Â Â Âif (!req->data_is_ptr) {
> + Â Â Â Â Â Âdo_outp(env, req->addr, req->size, req->data);
> + Â Â Â Â} else {
> + Â Â Â Â Â Âfor (i = 0; i < req->count; i++) {
> + Â Â Â Â Â Â Â Âunsigned long tmp = 0;
> +
> + Â Â Â Â Â Â Â Âread_physical((target_phys_addr_t) req->data
> + Â Â Â Â Â Â Â Â Â Â Â Â+ (sign * i * req->size),
> + Â Â Â Â Â Â Â Â Â Â Â Âreq->size, &tmp);
> + Â Â Â Â Â Â Â Âdo_outp(env, req->addr, req->size, tmp);
> + Â Â Â Â Â Â}
> + Â Â Â Â}
> + Â Â}
> +}
> +
> +static void cpu_ioreq_move(CPUState *env, ioreq_t *req)
> +{
> + Â Âint i, sign;
> +
> + Â Âsign = req->df ? -1 : 1;
> +
> + Â Âif (!req->data_is_ptr) {
> + Â Â Â Âif (req->dir == IOREQ_READ) {
> + Â Â Â Â Â Âfor (i = 0; i < req->count; i++) {
> + Â Â Â Â Â Â Â Âread_physical(req->addr
> + Â Â Â Â Â Â Â Â Â Â Â Â+ (sign * i * req->size),
> + Â Â Â Â Â Â Â Â Â Â Â Âreq->size, &req->data);
> + Â Â Â Â Â Â}
> + Â Â Â Â} else if (req->dir == IOREQ_WRITE) {
> + Â Â Â Â Â Âfor (i = 0; i < req->count; i++) {
> + Â Â Â Â Â Â Â Âwrite_physical(req->addr
> + Â Â Â Â Â Â Â Â Â Â Â Â+ (sign * i * req->size),
> + Â Â Â Â Â Â Â Â Â Â Â Âreq->size, &req->data);
> + Â Â Â Â Â Â}
> + Â Â Â Â}
> + Â Â} else {
> + Â Â Â Âtarget_ulong tmp;
> +
> + Â Â Â Âif (req->dir == IOREQ_READ) {
> + Â Â Â Â Â Âfor (i = 0; i < req->count; i++) {
> + Â Â Â Â Â Â Â Âread_physical(req->addr
> + Â Â Â Â Â Â Â Â Â Â Â Â+ (sign * i * req->size),
> + Â Â Â Â Â Â Â Â Â Â Â Âreq->size, &tmp);
> + Â Â Â Â Â Â Â Âwrite_physical((target_phys_addr_t )req->data
> + Â Â Â Â Â Â Â Â Â Â Â Â+ (sign * i * req->size),
> + Â Â Â Â Â Â Â Â Â Â Â Âreq->size, &tmp);
> + Â Â Â Â Â Â}
> + Â Â Â Â} else if (req->dir == IOREQ_WRITE) {
> + Â Â Â Â Â Âfor (i = 0; i < req->count; i++) {
> + Â Â Â Â Â Â Â Âread_physical((target_phys_addr_t) req->data
> + Â Â Â Â Â Â Â Â Â Â Â Â+ (sign * i * req->size),
> + Â Â Â Â Â Â Â Â Â Â Â Âreq->size, &tmp);
> + Â Â Â Â Â Â Â Âwrite_physical(req->addr
> + Â Â Â Â Â Â Â Â Â Â Â Â+ (sign * i * req->size),
> + Â Â Â Â Â Â Â Â Â Â Â Âreq->size, &tmp);
> + Â Â Â Â Â Â}
> + Â Â Â Â}
> + Â Â}
> +}
> +
> +static void cpu_ioreq_timeoffset(CPUState *env, ioreq_t *req)
> +{
> + Â Âchar b[64];
> +
> + Â Âtime_offset += (unsigned long)req->data;
> +
> + Â Âfprintf(stderr, "Time offset set %ld, added offset %"PRId64"\n",
> + Â Â Â Â Â Âtime_offset, req->data);
> + Â Âsprintf(b, "%ld", time_offset);

snprintf

> + Â Âxenstore_vm_write(xen_domid, "rtc/timeoffset", b);
> +}
> +
> +static void __handle_ioreq(CPUState *env, ioreq_t *req)
> +{
> + Â Âif (!req->data_is_ptr && (req->dir == IOREQ_WRITE) &&
> + Â Â Â Â Â Â(req->size < sizeof(target_ulong)))
> + Â Â Â Âreq->data &= ((target_ulong)1 << (8 * req->size)) - 1;
> +
> + Â Âswitch (req->type) {
> + Â Â Â Âcase IOREQ_TYPE_PIO:
> + Â Â Â Â Â Âcpu_ioreq_pio(env, req);
> + Â Â Â Â Â Âbreak;
> + Â Â Â Âcase IOREQ_TYPE_COPY:
> + Â Â Â Â Â Âcpu_ioreq_move(env, req);
> + Â Â Â Â Â Âbreak;
> + Â Â Â Âcase IOREQ_TYPE_TIMEOFFSET:
> + Â Â Â Â Â Âcpu_ioreq_timeoffset(env, req);
> + Â Â Â Â Â Âbreak;
> + Â Â Â Âcase IOREQ_TYPE_INVALIDATE:
> + Â Â Â Â Â Âqemu_invalidate_map_cache();
> + Â Â Â Â Â Âbreak;
> + Â Â Â Âdefault:
> + Â Â Â Â Â Âhw_error("Invalid ioreq type 0x%x\n", req->type);
> + Â Â}
> +}
> +
> +static void __handle_buffered_iopage(CPUState *env)
> +{
> + Â Âbuf_ioreq_t *buf_req = NULL;
> + Â Âioreq_t req;
> + Â Âint qw;
> +
> + Â Âif (!buffered_io_page)
> + Â Â Â Âreturn;
> +
> + Â Âwhile (buffered_io_page->read_pointer !=
> + Â Â Â Â Â Âbuffered_io_page->write_pointer) {
> + Â Â Â Âbuf_req = &buffered_io_page->buf_ioreq[
> + Â Â Â Â Â Âbuffered_io_page->read_pointer % IOREQ_BUFFER_SLOT_NUM];
> + Â Â Â Âreq.size = 1UL << buf_req->size;
> + Â Â Â Âreq.count = 1;
> + Â Â Â Âreq.addr = buf_req->addr;
> + Â Â Â Âreq.data = buf_req->data;
> + Â Â Â Âreq.state = STATE_IOREQ_READY;
> + Â Â Â Âreq.dir = buf_req->dir;
> + Â Â Â Âreq.df = 1;
> + Â Â Â Âreq.type = buf_req->type;
> + Â Â Â Âreq.data_is_ptr = 0;
> + Â Â Â Âqw = (req.size == 8);
> + Â Â Â Âif (qw) {
> + Â Â Â Â Â Âbuf_req = &buffered_io_page->buf_ioreq[
> + Â Â Â Â Â Â Â Â(buffered_io_page->read_pointer+1) % IOREQ_BUFFER_SLOT_NUM];
> + Â Â Â Â Â Âreq.data |= ((uint64_t)buf_req->data) << 32;
> + Â Â Â Â}
> +
> + Â Â Â Â__handle_ioreq(env, &req);
> +
> + Â Â Â Âxen_mb();
> + Â Â Â Âbuffered_io_page->read_pointer += qw ? 2 : 1;
> + Â Â}
> +}
> +
> +static void handle_buffered_io(void *opaque)
> +{
> + Â ÂCPUState *env = opaque;
> +
> + Â Â__handle_buffered_iopage(env);
> + Â Âqemu_mod_timer(buffered_io_timer, BUFFER_IO_MAX_DELAY +
> + Â Â Â Â Â Â Â Â Â qemu_get_clock(rt_clock));
> +}
> +
> +static void cpu_handle_ioreq(void *opaque)
> +{
> + Â ÂCPUState *env = opaque;
> + Â Âioreq_t *req = cpu_get_ioreq();
> +
> + Â Â__handle_buffered_iopage(env);
> + Â Âif (req) {
> + Â Â Â Â__handle_ioreq(env, req);
> +
> + Â Â Â Âif (req->state != STATE_IOREQ_INPROCESS) {
> + Â Â Â Â Â Âfprintf(stderr, "Badness in I/O request ... not in service?!: "
> + Â Â Â Â Â Â Â Â Â Â"%x, ptr: %x, port: %"PRIx64", "
> + Â Â Â Â Â Â Â Â Â Â"data: %"PRIx64", count: %u, size: %u\n",
> + Â Â Â Â Â Â Â Â Â Âreq->state, req->data_is_ptr, req->addr,
> + Â Â Â Â Â Â Â Â Â Âreq->data, req->count, req->size);
> + Â Â Â Â Â Âdestroy_hvm_domain();
> + Â Â Â Â Â Âreturn;
> + Â Â Â Â}
> +
> + Â Â Â Âxen_wmb(); /* Update ioreq contents /then/ update state. */
> +
> + Â Â Â Âreq->state = STATE_IORESP_READY;
> + Â Â Â Âxc_evtchn_notify(xce_handle, ioreq_local_port[send_vcpu]);
> + Â Â}
> +}
> +
> Âvoid xen_main_loop_prepare(void)
> Â{
> + Â ÂCPUState *env = cpu_single_env;
> +
> + Â Âint evtchn_fd = xce_handle == -1 ? -1 : xc_evtchn_fd(xce_handle);
> +
> + Â Âbuffered_io_timer = qemu_new_timer(rt_clock, handle_buffered_io,
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â cpu_single_env);
> + Â Âqemu_mod_timer(buffered_io_timer, qemu_get_clock(rt_clock));
> +
> + Â Âif (evtchn_fd != -1)
> + Â Â Â Âqemu_set_fd_handler(evtchn_fd, cpu_handle_ioreq, NULL, env);
> +
> Â Â xenstore_record_dm_state("running");
> Â}
> +
> +void destroy_hvm_domain(void)
> +{
> + Â Âxc_interface *xcHandle;

xc_handle or something.

> + Â Âint sts;
> +
> + Â ÂxcHandle = xc_interface_open(NULL, NULL, 0);
> + Â Âif (xcHandle < 0)
> + Â Â Â Âfprintf(stderr, "Cannot acquire xenctrl handle\n");
> + Â Âelse {
> + Â Â Â Âsts = xc_domain_shutdown(xcHandle, xen_domid, SHUTDOWN_poweroff);
> + Â Â Â Âif (sts != 0)
> + Â Â Â Â Â Âfprintf(stderr, "? xc_domain_shutdown failed to issue poweroff, "
> + Â Â Â Â Â Â Â Â Â Â"sts %d, errno %d\n", sts, errno);
> + Â Â Â Âelse
> + Â Â Â Â Â Âfprintf(stderr, "Issued domain %d poweroff\n", xen_domid);
> + Â Â Â Âxc_interface_close(xcHandle);
> + Â Â}
> +}
> diff --git a/target-xen/qemu-xen.h b/target-xen/qemu-xen.h
> index 091ae07..79a4638 100644
> --- a/target-xen/qemu-xen.h
> +++ b/target-xen/qemu-xen.h
> @@ -22,12 +22,14 @@ void   qemu_invalidate_map_cache(void);
>
> Â/* target-xen/exec-dm.c */
>
> +void destroy_hvm_domain(void);
> Âint cpu_register_io_memory_fixed(int io_index,
> Â Â Â Â Â Â Â Â Â Â Â Â Â ÂCPUReadMemoryFunc * const *mem_read,
> Â Â Â Â Â Â Â Â Â Â Â Â Â ÂCPUWriteMemoryFunc * const *mem_write,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Âvoid *opaque);
>
> Â/* target-xen/helper.c */
> +extern int xce_handle;
> Âvoid xen_main_loop_prepare(void);
>
> Â#endif /*QEMU_XEN_H*/
> --
> 1.7.0.4
>
>
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.