1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
bus: main-system-bus
  type System
  dev: ramfb, id ""
    x-migrate = true
  dev: cfi.pflash01, id ""
    drive = ""
    num-blocks = 128 (0x80)
    sector-length = 262144 (0x40000)
    width = 4 (0x4)
    device-width = 2 (0x2)
    max-device-width = 2 (0x2)
    big-endian = false
    secure = false
    id0 = 137 (0x89)
    id1 = 24 (0x18)
    id2 = 0 (0x0)
    id3 = 0 (0x0)
    name = "virt.flash1"
    old-multiple-chip-handling = false
    mmio ffffffffffffffff/0000000002000000
  dev: cfi.pflash01, id ""
    drive = "pflash0"
    num-blocks = 128 (0x80)
    sector-length = 262144 (0x40000)
    width = 4 (0x4)
    device-width = 2 (0x2)
    max-device-width = 2 (0x2)
    big-endian = false
    secure = false
    id0 = 137 (0x89)
    id1 = 24 (0x18)
    id2 = 0 (0x0)
    id3 = 0 (0x0)
    name = "virt.flash0"
    old-multiple-chip-handling = false
    mmio ffffffffffffffff/0000000002000000
  dev: goldfish_rtc, id ""
    gpio-out "sysbus-irq" 1
    big-endian = false
    mmio 0000000000101000/0000000000000024
  dev: serial-mm, id ""
    gpio-out "sysbus-irq" 1
    regshift = 0 (0x0)
    endianness = 2 (0x2)
    mmio ffffffffffffffff/0000000000000008
  dev: platform-bus-device, id "platform-bus-device"
    gpio-out "sysbus-irq" 32
    num_irqs = 32 (0x20)
    mmio_size = 33554432 (0x2000000)
    mmio ffffffffffffffff/0000000002000000
  dev: gpex-pcihost, id ""
    gpio-out "sysbus-irq" 4
    allow-unmapped-accesses = true
    x-ecam-base = 805306368 (0x30000000)
    x-ecam-size = 268435456 (256 MiB)
    x-pio-base = 50331648 (0x3000000)
    x-pio-size = 65536 (64 KiB)
    x-below-4g-mmio-base = 1073741824 (0x40000000)
    x-below-4g-mmio-size = 1073741824 (1 GiB)
    x-above-4g-mmio-base = 17179869184 (0x400000000)
    x-above-4g-mmio-size = 17179869184 (16 GiB)
    x-config-reg-migration-enabled = true
    bypass-iommu = false
    mmio ffffffffffffffff/0000000010000000
    mmio ffffffffffffffff/ffffffffffffffff
    mmio 0000000003000000/0000000000010000
    bus: pcie.0
      type PCIE
      dev: virtio-blk-pci, id ""
        disable-legacy = "off"
        disable-modern = false
        class = 0 (0x0)
        ioeventfd = true
        vectors = 2 (0x2)
        virtio-pci-bus-master-bug-migration = false
        migrate-extra = true
        modern-pio-notify = false
        x-disable-pcie = false
        page-per-vq = false
        x-ignore-backend-features = false
        ats = false
        x-ats-page-aligned = true
        x-pcie-deverr-init = true
        x-pcie-lnkctl-init = true
        x-pcie-pm-init = true
        x-pcie-pm-no-soft-reset = false
        x-pcie-flr-init = true
        aer = false
        addr = 02.0
        romfile = ""
        romsize = 4294967295 (0xffffffff)
        rombar = 1 (0x1)
        multifunction = false
        x-pcie-lnksta-dllla = true
        x-pcie-extcap-init = true
        failover_pair_id = ""
        acpi-index = 0 (0x0)
        x-pcie-err-unc-mask = true
        x-pcie-ari-nextfn-1 = false
        x-max-bounce-buffer-size = 4096 (4 KiB)
        x-pcie-ext-tag = true
        busnr = 0 (0x0)
        class SCSI controller, addr 00:02.0, pci id 1af4:1001 (sub 1af4:0002)
        bar 0: i/o at 0x0 [0x7f]
        bar 1: mem at 0xffffffffffffffff [0xffe]
        bar 4: mem at 0xffffffffffffffff [0x3ffe]
        bus: virtio-bus
          type virtio-pci-bus
          dev: virtio-blk-device, id ""
            drive = "virtio2"
            backend_defaults = "auto"
            logical_block_size = 512 (512 B)
            physical_block_size = 512 (512 B)
            min_io_size = 0 (0 B)
            opt_io_size = 0 (0 B)
            discard_granularity = 4294967295 (4 GiB)
            write-cache = "auto"
            share-rw = false
            account-invalid = "auto"
            account-failed = "auto"
            rerror = "auto"
            werror = "auto"
            cyls = 7 (0x7)
            heads = 16 (0x10)
            secs = 63 (0x3f)
            lcyls = 0 (0x0)
            lheads = 0 (0x0)
            lsecs = 0 (0x0)
            serial = ""
            config-wce = true
            request-merging = true
            num-queues = 1 (0x1)
            queue-size = 256 (0x100)
            seg-max-adjust = true
            iothread-vq-mapping = <null>
            discard = true
            report-discard-granularity = true
            write-zeroes = true
            max-discard-sectors = 4194303 (0x3fffff)
            max-write-zeroes-sectors = 4194303 (0x3fffff)
            x-enable-wce-if-config-wce = true
            indirect_desc = true
            event_idx = true
            notify_on_empty = true
            any_layout = true
            iommu_platform = false
            packed = false
            queue_reset = true
            in_order = false
            use-started = true
            use-disabled-flag = true
            x-disable-legacy-check = false
      dev: qemu-xhci, id ""
        addr = 01.0
        romfile = ""
        romsize = 4294967295 (0xffffffff)
        rombar = 1 (0x1)
        multifunction = false
        x-pcie-lnksta-dllla = true
        x-pcie-extcap-init = true
        failover_pair_id = ""
        acpi-index = 0 (0x0)
        x-pcie-err-unc-mask = true
        x-pcie-ari-nextfn-1 = false
        x-max-bounce-buffer-size = 4096 (4 KiB)
        x-pcie-ext-tag = true
        busnr = 0 (0x0)
        class USB controller, addr 00:01.0, pci id 1b36:000d (sub 1af4:1100)
        bar 0: mem at 0xffffffffffffffff [0x3ffe]
        bus: usb-bus.0
          type usb-bus
          dev: usb-mouse, id ""
            usb_version = 2 (0x2)
            port = ""
            serial = ""
            msos-desc = true
            pcap = ""
            addr 0.2, port 2, speed 480, name QEMU USB Mouse, attached
          dev: usb-kbd, id ""
            usb_version = 2 (0x2)
            display = ""
            port = ""
            serial = ""
            msos-desc = true
            pcap = ""
            addr 0.1, port 1, speed 480, name QEMU USB Keyboard, attached
      dev: gpex-root, id ""
        addr = 00.0
        romfile = ""
        romsize = 4294967295 (0xffffffff)
        rombar = 1 (0x1)
        multifunction = false
        x-pcie-lnksta-dllla = true
        x-pcie-extcap-init = true
        failover_pair_id = ""
        acpi-index = 0 (0x0)
        x-pcie-err-unc-mask = true
        x-pcie-ari-nextfn-1 = false
        x-max-bounce-buffer-size = 4096 (4 KiB)
        x-pcie-ext-tag = true
        busnr = 0 (0x0)
        class Host bridge, addr 00:00.0, pci id 1b36:0008 (sub 1af4:1100)
  dev: virtio-mmio, id ""
    gpio-out "sysbus-irq" 1
    format_transport_address = true
    force-legacy = true
    ioeventfd = true
    mmio 0000000010008000/0000000000000200
    bus: virtio-mmio-bus.7
      type virtio-mmio-bus
  dev: virtio-mmio, id ""
    gpio-out "sysbus-irq" 1
    format_transport_address = true
    force-legacy = true
    ioeventfd = true
    mmio 0000000010007000/0000000000000200
    bus: virtio-mmio-bus.6
      type virtio-mmio-bus
  dev: virtio-mmio, id ""
    gpio-out "sysbus-irq" 1
    format_transport_address = true
    force-legacy = true
    ioeventfd = true
    mmio 0000000010006000/0000000000000200
    bus: virtio-mmio-bus.5
      type virtio-mmio-bus
  dev: virtio-mmio, id ""
    gpio-out "sysbus-irq" 1
    format_transport_address = true
    force-legacy = true
    ioeventfd = true
    mmio 0000000010005000/0000000000000200
    bus: virtio-mmio-bus.4
      type virtio-mmio-bus
  dev: virtio-mmio, id ""
    gpio-out "sysbus-irq" 1
    format_transport_address = true
    force-legacy = true
    ioeventfd = true
    mmio 0000000010004000/0000000000000200
    bus: virtio-mmio-bus.3
      type virtio-mmio-bus
  dev: virtio-mmio, id ""
    gpio-out "sysbus-irq" 1
    format_transport_address = true
    force-legacy = true
    ioeventfd = true
    mmio 0000000010003000/0000000000000200
    bus: virtio-mmio-bus.2
      type virtio-mmio-bus
  dev: virtio-mmio, id ""
    gpio-out "sysbus-irq" 1
    format_transport_address = true
    force-legacy = true
    ioeventfd = true
    mmio 0000000010002000/0000000000000200
    bus: virtio-mmio-bus.1
      type virtio-mmio-bus
  dev: virtio-mmio, id ""
    gpio-out "sysbus-irq" 1
    format_transport_address = true
    force-legacy = true
    ioeventfd = true
    mmio 0000000010001000/0000000000000200
    bus: virtio-mmio-bus.0
      type virtio-mmio-bus
  dev: riscv.sifive.test, id ""
    mmio 0000000000100000/0000000000001000
  dev: fw_cfg_mem, id ""
    data_width = 8 (0x8)
    dma_enabled = true
    x-file-slots = 32 (0x20)
    acpi-mr-restore = true
    mmio 0000000010100008/0000000000000002
    mmio 0000000010100000/0000000000000008
    mmio 0000000010100010/0000000000000008
  dev: riscv.sifive.plic, id ""
    gpio-in "" 96
    gpio-out "" 2
    hart-config = "MS"
    hartid-base = 0 (0x0)
    num-sources = 96 (0x60)
    num-priorities = 7 (0x7)
    priority-base = 0 (0x0)
    pending-base = 4096 (0x1000)
    enable-base = 8192 (0x2000)
    enable-stride = 128 (0x80)
    context-base = 2097152 (0x200000)
    context-stride = 4096 (0x1000)
    aperture-size = 6291456 (0x600000)
    mmio 000000000c000000/0000000000600000
  dev: riscv.aclint.mtimer, id ""
    gpio-out "" 1
    hartid-base = 0 (0x0)
    num-harts = 1 (0x1)
    timecmp-base = 0 (0x0)
    time-base = 32760 (0x7ff8)
    aperture-size = 32768 (0x8000)
    timebase-freq = 10000000 (0x989680)
    mmio 0000000002004000/0000000000008000
  dev: riscv.aclint.swi, id ""
    gpio-out "" 1
    hartid-base = 0 (0x0)
    num-harts = 1 (0x1)
    sswi = 0 (0x0)
    mmio 0000000002000000/0000000000004000
  dev: riscv.hart_array, id ""
    num-harts = 1 (0x1)
    hartid-base = 0 (0x0)
    cpu-type = "rv64-riscv-cpu"
    resetvec = 4096 (0x1000)