~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to hw/s390x/s390-virtio.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#include "hw/s390x/ipl.h"
45
45
#include "cpu.h"
46
46
 
47
 
//#define DEBUG_S390
48
 
 
49
 
#ifdef DEBUG_S390
50
 
#define DPRINTF(fmt, ...) \
51
 
    do { fprintf(stderr, fmt, ## __VA_ARGS__); } while (0)
52
 
#else
53
 
#define DPRINTF(fmt, ...) \
54
 
    do { } while (0)
55
 
#endif
56
 
 
57
47
#define MAX_BLK_DEVS                    10
58
48
 
59
49
#define S390_TOD_CLOCK_VALUE_MISSING    0x00
75
65
                       const char *kernel_cmdline,
76
66
                       const char *initrd_filename,
77
67
                       const char *firmware,
 
68
                       const char *netboot_fw,
78
69
                       bool enforce_bios)
79
70
{
80
71
    Object *new = object_new(TYPE_S390_IPL);
88
79
    }
89
80
    qdev_prop_set_string(dev, "cmdline", kernel_cmdline);
90
81
    qdev_prop_set_string(dev, "firmware", firmware);
 
82
    qdev_prop_set_string(dev, "netboot_fw", netboot_fw);
91
83
    qdev_prop_set_bit(dev, "enforce_bios", enforce_bios);
92
84
    object_property_add_child(qdev_get_machine(), TYPE_S390_IPL,
93
85
                              new, NULL);