return ret;
}
if (header.capacity == 0) {
- int64_t desc_offset = le64_to_cpu(header.desc_offset);
uint64_t desc_offset = le64_to_cpu(header.desc_offset);
if (desc_offset) {
return vmdk_open_desc_file(bs, flags, desc_offset << 9);
echo " --disable-slirp disable SLIRP userspace network connectivity"
echo " --disable-kvm disable KVM acceleration support"
echo " --enable-kvm enable KVM acceleration support"
-echo " --disable-gl disable GL acceleration support"
echo " --disable-hax disable HAX acceleration support"
echo " --enable-hax enable HAX acceleration support"
fi
fi
esac
-case "$target_arch2" in
+case "$target_name" in
i386|x86_64)
echo "CONFIG_HAVE_GET_MEMORY_MAPPING=y" >> $config_target_mak
esac
if test "$hax" = "yes" ; then
if test "$target_softmmu" = "yes" ; then
- case "$target_arch2" in
+ case "$target_name" in
i386|x86_64)
echo "CONFIG_HAX=y" >> $config_target_mak
;;
fi
fi
if test "$gl" = "yes" ; then
- case "$target_arch2" in
+ case "$target_name" in
i386|x86_64|arm)
echo "CONFIG_GL=y" >> $config_target_mak
if test "$mingw32" = "yes" ; then
;;
esac
fi
-if test "$target_arch2" = "ppc64" -a "$fdt" = "yes"; then
- echo "CONFIG_PSERIES=y" >> $config_target_mak
-fi
if test "$target_bigendian" = "yes" ; then
echo "TARGET_WORDS_BIGENDIAN=y" >> $config_target_mak
fi
/* vga + console init */
#ifdef CONFIG_MARU
- maru_vga_common_init(s);
+ maru_vga_common_init(s, OBJECT(dev));
#else
vga_common_init(s, OBJECT(dev));
#endif
const char *opts)
{
PCIDevice *dev;
+ PCIBus *root = pci_find_primary_bus();
PCIBus *bus;
int devfn;
- bus = pci_get_bus_devfn(&devfn, devaddr);
+ if (!root) {
+ monitor_printf(mon, "no primary PCI bus (if there are multiple"
+ " PCI roots, you must use device_add instead)");
+ return NULL;
+ }
+
+ bus = pci_get_bus_devfn(&devfn, root, devaddr);
if (!bus) {
monitor_printf(mon, "Invalid PCI device address %s\n", devaddr);
return NULL;
int hax_vcpu_dirty; \
struct hax_vcpu_state *hax_vcpu; \
\
- CPUArchState *next_cpu; /* next CPU sharing TB cache */ \
-
/* user data */ \
void *opaque; \
\
# Since: 1.2.0
##
{ 'type': 'FdsetInfo',
- 'data': {'fdset-id': yy'int', 'fds': ['FdsetFdInfo']} }
+ 'data': {'fdset-id': 'int', 'fds': ['FdsetFdInfo']} }
##
# @query-fdsets:
##
{ 'command': 'query-target', 'returns': 'TargetInfo' }
-
-
## Eric 2013.3.7 ##
##
{ 'type': 'AccelInfo',
'data': { 'Xaxis': 'int', 'Yaxis': 'int', 'Zaxis' : 'int'} }
-##
-# @query-accel:
-#
-# Return information about the acceleration sensor value
-#
-# Returns: AccelInfo
-#
-# Since: 1.2.0
-##
-{ 'command': 'query-accel', 'returns': 'AccelInfo' }
-
##
# @QKeyCode:
#