8f39682ce1904392767c7fd199d195679eae3562
[lunaix-os.git] / lunaix-os / scripts / qemus / qemu_x86_dev.json
1 {
2     "arch": "$ARCH",
3     "memory": "1G",
4     "ncpu": 1,
5     "machine": "q35",
6     "cpu": {
7         "type": "base",
8         "features": [
9             "rdrand",
10             "clflush",
11             "lm",
12             "nx",
13             "syscall",
14             "mca",
15             "pse36",
16             "pcid",
17             "invpcid",
18             "cmov",
19             "apic"
20         ]
21     },
22     "kernel": {
23         "bin": "$KBIN",
24         "cmd": "$KCMD"
25     },
26     "debug": {
27         "gdb_port": "$GDB_PORT",
28         "traced": [
29             "x86_recv_fault",
30             "ide_dma_cb"
31         ]
32     },
33     "devices": [
34         {
35             "class": "isa-serial",
36             "io": {
37                 "type": "telnet",
38                 "port": "12345",
39                 "logfile": "lunaix_ttyS0.log"
40             }
41         },
42         {
43             "class": "pci-serial",
44             "io": {
45                 "type": "null",
46                 "logfile": "ttypci1.log"
47             }
48         },
49         {
50             "class": "pci-serial",
51             "io": {
52                 "type": "null",
53                 "logfile": "ttypci2.log"
54             }
55         },
56         {
57             "class": "rtc",
58             "base": "utc"
59         },
60         {
61             "class": "ahci",
62             "name": "ahci_0",
63             "disks": [
64                 {
65                     "type": "ide-hd",
66                     "img": "$ROOTFS",
67                     "format": "raw"
68                 }
69             ]
70         },
71         {
72             "class": "hmp",
73             "io": {
74                 "type": "telnet",
75                 "port": "$QMPORT",
76                 "logfile": "qm.log"
77             }
78         }
79     ]
80 }