~fboudra/qemu-linaro/new-upstream-release-1.2.0-2012.09-0ubuntu1

« back to all changes in this revision

Viewing changes to hw/xen_console.c

  • Committer: Fathi Boudra
  • Author(s): Fathi Boudra
  • Date: 2012-08-21 06:47:11 UTC
  • mfrom: (0.1.16)
  • Revision ID: fathi.boudra@linaro.org-20120821064711-7yxmubp2v8a44xce
Tags: 1.1.50-2012.08-0ubuntu1
* New upstream release.
  - support emulated systems with more than 2G of memory. (LP: #1030588)
* Drop powerpc-missing-include.patch - merged upstream.
* Update debian/control: 
  - drop perl build dependency.
  - add libfdt-dev build dependency.
* Update debian/qemu-keymaps.install file.
* Update debian/rules:
  - update QEMU_CPU for ARM architecture: armv4l -> armv7l.
  - update conf_audio_drv: default to PulseAudio since PA is the default on
    Ubuntu.
  - enable KVM on ARM architecture.
  - enable flat device tree support (--enable-fdt). (LP: #1030594)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <termios.h>
29
29
#include <stdarg.h>
30
30
#include <sys/mman.h>
31
 
#include <xs.h>
32
 
#include <xen/io/console.h>
33
 
#include <xenctrl.h>
34
31
 
35
32
#include "hw.h"
36
33
#include "qemu-char.h"
37
34
#include "xen_backend.h"
38
35
 
 
36
#include <xen/io/console.h>
 
37
 
39
38
struct buffer {
40
39
    uint8_t *data;
41
40
    size_t consumed;
248
247
{
249
248
    struct XenConsole *con = container_of(xendev, struct XenConsole, xendev);
250
249
 
 
250
    if (!xendev->dev) {
 
251
        return;
 
252
    }
251
253
    if (con->chr)
252
254
        qemu_chr_add_handlers(con->chr, NULL, NULL, NULL, NULL);
253
255
    xen_be_unbind_evtchn(&con->xendev);