migrate stock user space build to new build system
[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             "x86_log_pagefault",
31             "ide_dma_cb"
32         ]
33     },
34     "devices": [
35         {
36             "class": "isa-serial",
37             "io": {
38                 "type": "telnet",
39                 "port": "12345",
40                 "logfile": "lunaix_ttyS0.log"
41             }
42         },
43         {
44             "class": "pci-serial",
45             "io": {
46                 "type": "null",
47                 "logfile": "ttypci1.log"
48             }
49         },
50         {
51             "class": "pci-serial",
52             "io": {
53                 "type": "null",
54                 "logfile": "ttypci2.log"
55             }
56         },
57         {
58             "class": "rtc",
59             "base": "utc"
60         },
61         {
62             "class": "ahci",
63             "name": "ahci_0",
64             "disks": [
65                 {
66                     "type": "ide-hd",
67                     "img": "$ROOTFS",
68                     "format": "raw"
69                 }
70             ]
71         },
72         {
73             "class": "hmp",
74             "io": {
75                 "type": "telnet",
76                 "port": "$QMPORT",
77                 "logfile": "qm.log"
78             }
79         }
80     ]
81 }