[Qemu-devel] [PULL 04/49] char: introduce support for TLS encrypted TCP chardev backend

2016-01-26 Thread Paolo Bonzini
From: "Daniel P. Berrange" This integrates support for QIOChannelTLS object in the TCP chardev backend. If the 'tls-creds=NAME' option is passed with the '-chardev tcp' argument, then it will setup the chardev such that the client is required to establish a TLS handshake

[Qemu-devel] [PULL 15/49] scripts/kvm/kvm_stat: Introduce main function

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank The main function should be the main location for initialization and helps encapsulating variables into a scope. This way they don't have to be global and might be mistaken for local ones. As the providers variable is scoped now it can't be

[Qemu-devel] [PULL 02/49] char: convert from GIOChannel to QIOChannel

2016-01-26 Thread Paolo Bonzini
From: "Daniel P. Berrange" In preparation for introducing TLS support to the TCP chardev backend, convert existing chardev code from using GIOChannel to QIOChannel. This simplifies the chardev code by removing most of the OS platform conditional code for dealing with file

[Qemu-devel] [PULL 16/49] scripts/kvm/kvm_stat: Fix spaces around keyword assignments

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Keyword assignments should not not have spaces around the equal character according to PEP8. Reviewed-by: Jason J. Herne Signed-off-by: Janosch Frank Message-Id:

[Qemu-devel] [PULL 11/49] scripts/kvm/kvm_stat: Mark globals in functions

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Updating globals over the globals().update() method is not the standard way of changing globals. Marking variables as global and modifying them the standard way is better readable. Signed-off-by: Janosch Frank

[Qemu-devel] [PULL 05/49] docs: Style the command and its options in the synopsis

2016-01-26 Thread Paolo Bonzini
From: Sitsofe Wheeler Signed-off-by: Sitsofe Wheeler Message-Id: <1452718226-25001-1-git-send-email-sits...@yahoo.com> Signed-off-by: Paolo Bonzini --- fsdev/virtfs-proxy-helper.texi | 2 +- qemu-doc.texi | 8

[Qemu-devel] [PULL 10/49] scripts/kvm/kvm_stat: Removed unneeded PERF constants

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Only two of the constants are actually needed to set up the events, so the others were removed. All variables that used them were also removed. Signed-off-by: Janosch Frank Message-Id:

[Qemu-devel] [PULL 21/49] scripts/kvm/kvm_stat: Cleanup of platform detection

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank s390 machines can also be detected via uname -m, i.e. python's os.uname, no need for more complicated checks. Calling uname once and saving its value for multiple checks is perfectly sufficient. We don't expect the machine's architecture to change

[Qemu-devel] [PULL 08/49] scripts/kvm/kvm_stat: Replaced os.listdir with os.walk

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Os.walk gives back lists of directories and files, no need to filter directories from the list that listdir gives back. To make it better understandable a wrapper with docstring was introduced. Signed-off-by: Janosch Frank

[Qemu-devel] [PULL 12/49] scripts/kvm/kvm_stat: Invert dictionaries

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank The exit reasons dictionaries were defined number -> value but later on were accessed the other way around. Therefore a invert function inverted them. Defining them the right way removes the need to invert them and therefore also speeds up the

[Qemu-devel] [PULL 17/49] scripts/kvm/kvm_stat: Rename variables that redefine globals

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Filter, id and byte are builtin python modules which should not be redefined by local variables. Reviewed-by: Jason J. Herne Signed-off-by: Janosch Frank Message-Id:

[Qemu-devel] [PULL 22/49] scripts/kvm/kvm_stat: Make cpu detection a function

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank The online cpus detection method is in the Stats class but does not use any class variables. Moving it out of the class to the platform detection function makes the Stats class more readable. Signed-off-by: Janosch Frank

[Qemu-devel] [PULL 09/49] scripts/kvm/kvm_stat: Make constants uppercase

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Constants should be uppercase with separating underscores, as requested in PEP8. This helps identifying them when reading the code. Reviewed-by: Jason J. Herne Signed-off-by: Janosch Frank

[Qemu-devel] [PULL 30/49] scripts/kvm/kvm_stat: Cleanup of Event class

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Added additional newlines for readability. Factored out attribute and event setup code into own methods. Exchanged file() with preferred open(). Signed-off-by: Janosch Frank Message-Id:

[Qemu-devel] [PULL 18/49] scripts/kvm/kvm_stat: Moved DebugfsProvider

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank When it is next to the TracepointProvider less scrolling is needed to change related, surrounding code. Reviewed-by: Jason J. Herne Signed-off-by: Janosch Frank Message-Id:

[Qemu-devel] [PULL 20/49] scripts/kvm/kvm_stat: Set sensible no. files rlimit

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank As num cpus * 1000 is NOT a sensible rlimit, we need to calculate a more accurate rlimit. The number of open files is directly dependent on the cpu count and on the number of trace points per cpu. A additional constant works as a buffer for files

[Qemu-devel] [PULL 40/49] scripts/kvm/kvm_stat: Add optparse description

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Added a description text that explains what the script does and which requirements have to be met to let it run. The help formatter class is needed as the default optparse formatter makes the text unreadable. Signed-off-by: Janosch Frank

[Qemu-devel] [PULL 25/49] scripts/kvm/kvm_stat: Cleanup of TracepointProvider

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Variables with bad names like f and m were renamed to their full name, so it is clearer which data they contain. Unneeded variables were removed and the field generating code was moved in an own function. dict.iteritems() was removed as directly

[Qemu-devel] [PULL 13/49] scripts/kvm/kvm_stat: Cleanup of path variables

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Paths to debugfs and trace dirs are now specified globally to remove redundancies in the code. Reviewed-by: Jason J. Herne Signed-off-by: Janosch Frank Message-Id:

[Qemu-devel] [PULL 26/49] scripts/kvm/kvm_stat: Cleanup cpu list retrieval

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Reading /sys/devices/system/cpu/online makes opening the cpu directories unnecessary and works on more/older systems. Signed-off-by: Janosch Frank Message-Id:

[Qemu-devel] [PULL 39/49] scripts/kvm/kvm_stat: Add interactive filtering

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Interactively changing the filter is much more useful than the drilldown, because it is more versatile. With this patch, the filter can be changed by pressing 'f' in the text ui and entering a new filter regex. Signed-off-by: Janosch Frank

[Qemu-devel] [PULL 19/49] scripts/kvm/kvm_stat: Fixup syscall error reporting

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank In 2008 a patch was written that introduced ctypes.get_errno() and set_errno() as official interfaces to the libc errno variable. Using them we can avoid accessing private libc variables. The patch was included in python 2.6. Also we need to raise

[Qemu-devel] [PULL 14/49] scripts/kvm/kvm_stat: Improve debugfs access checking

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Access checking with F_OK was replaced with the better readable os.path.exists(). On Linux exists() returns False when the user doesn't have sufficient permissions for statting the directory. Therefore the error message now states that sufficient

[Qemu-devel] [PULL 46/49] scripts/dump-guest-memory.py: Improve python 3 compatibility

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank This commit does not make the script python 3 compatible, it is a preparation that fixes the easy and common incompatibilities. Print is a function in python 3 and therefore needs braces around its arguments. Range does not cast a gdb.Value

[Qemu-devel] [PULL 23/49] scripts/kvm/kvm_stat: Rename _perf_event_open

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank The underscore in front of the function name does not comply with the python coding guidelines. Reviewed-by: Jason J. Herne Signed-off-by: Janosch Frank Message-Id:

[Qemu-devel] [PULL 32/49] scripts/kvm/kvm_stat: Remove unneeded X86_EXIT_REASONS

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank The architecture detection method directly accesses vmx and smv exit reason constants. Therefore we don't need it anymore. Signed-off-by: Janosch Frank Message-Id:

[Qemu-devel] [PULL 27/49] scripts/kvm/kvm_stat: Encapsulate filters variable

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank The variable was only used in one class but still was defined globally. Additionaly the detect_platform routine which prepares the data that goes into the variable was called on each start of the script, no matter if the class was needed. To make

[Qemu-devel] [PATCH v7 0/3] i386: expose floppy-related objects in SSDT

2016-01-26 Thread Igor Mammedov
v6->v7: - rebase on top of current master to resolve conflicts with the latest FDC refactoring v5->v6: - rebased on top DSDT converted to AMP API - dropped intermediate structs for one time used floppy parameters which simplifies code a bit. Windows on UEFI systems is only capable of

[Qemu-devel] [PULL 29/49] scripts/kvm/kvm_stat: Cleanup of Groups class

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Introduced separating newlines for readability and removed special treatment/variable of the group leader. Renamed fmt to read_format. The group leader's file descriptor will not be turned into a file object anymore, instead os.read is used to

[Qemu-devel] [PULL 24/49] scripts/kvm/kvm_stat: Introduce properties for providers

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank As previous commit authors used a mixture of setters/getters and direct access to class variables consolidating them the python way improved readability. Properties allow us to assign a value to a class variable through a setter without the need

[Qemu-devel] [PULL 44/49] scripts/dump-guest-memory.py: Move constants to the top

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank The constants bloated the class definition and were therefore moved to the top. Reviewed-by: Laszlo Ersek Signed-off-by: Janosch Frank Message-Id:

[Qemu-devel] [PULL 49/49] scripts/dump-guest-memory.py: Fix module docstring

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank The module docstring is changed into a multi-line comment to comply with pep 257. The comment about the docstring that gets used by gdb to print the help is moved to the location of the docstring. Signed-off-by: Janosch Frank

[Qemu-devel] [PULL 28/49] scripts/kvm/kvm_stat: Cleanup of Stats class

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Converted class definition to new style and renamed improper named variables. Introduced property for fields_filter. Moved member variable declaration to init, so one can see all class variables when reading the init method. Completely clear the

[Qemu-devel] [PULL 31/49] scripts/kvm/kvm_stat: Group arch specific data

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Using global variables and multiple initialization functions for arch specific data makes the code hard to read. By grouping them in the Arch classes we encapsulate and initialize them in one place. Signed-off-by: Janosch Frank

[Qemu-devel] [PATCH v7 2/3] expose floppy drive geometry and CMOS type

2016-01-26 Thread Igor Mammedov
From: Roman Kagan Make it possible to query the geometry and the CMOS type of a floppy drive outside of the respective source files. It will be useful, in particular, when dynamically building ACPI tables, and will allow to properly populate the corresponding ACPI objects

[Qemu-devel] [PULL 34/49] scripts/kvm/kvm_stat: Fix output formatting

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank The key names in log mode were capped to 10 characters which is not enough for distinguishing between keys. Capping was therefore removed. In batch mode the spacing between keys and values was too narrow and therefore had to be extended to 42.

[Qemu-devel] [PULL 37/49] scripts/kvm/kvm_stat: Fix rlimit for unprivileged users

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Setting the hard limit as a unprivileged user either returns an error when it is higher than the current one or irreversibly sets it lower. Therefore we leave the hardlimit untouched as long as we don't need to raise it as this needs

[Qemu-devel] [PULL 36/49] scripts/kvm/kvm_stat: Read event values as u64

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank The struct read_format, which denotes the returned values on a read states that the values are u64 and not long long which is used for struct unpacking. Therefore the 'q' long long formatter was exchanged with 'Q' which is the format for u64 data.

[Qemu-devel] [PULL 35/49] scripts/kvm/kvm_stat: Cleanup and pre-init perf_event_attr

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank All initializations of the ctypes struct that don't need additional information were moved to its init method. The unneeded initializations for sample_type and sample_period were removed as they do not affect the counters that are read. This

[Qemu-devel] [PATCH v2 3/5] qapi: rename input buttons

2016-01-26 Thread Gerd Hoffmann
All lowercase, use-dash instead of CamelCase. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel P. Berrange --- hw/input/hid.c | 4 ++-- hw/input/ps2.c | 4 ++-- hw/input/virtio-input-hid.c | 4 ++-- monitor.c |

Re: [Qemu-devel] VFIO based vGPU(was Re: [Announcement] 2015-Q3 release of XenGT - a Mediated ...)

2016-01-26 Thread Yang Zhang
On 2016/1/26 15:41, Jike Song wrote: On 01/26/2016 05:30 AM, Alex Williamson wrote: [cc +Neo @Nvidia] Hi Jike, On Mon, 2016-01-25 at 19:34 +0800, Jike Song wrote: On 01/20/2016 05:05 PM, Tian, Kevin wrote: I would expect we can spell out next level tasks toward above direction, upon which

[Qemu-devel] [PULL 33/49] scripts/kvm/kvm_stat: Make tui function a class

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank The tui function itself had a few sub-functions and therefore basically already was class-like. Making it an actual one with proper methods improved readability. The curses wrapper was dropped in favour of __entry/exit__ methods that implement the

[Qemu-devel] [PULL 41/49] cpus: use broadcast on qemu_pause_cond

2016-01-26 Thread Paolo Bonzini
From: "Dr. David Alan Gilbert" Jiri saw a hang on pause_all_vcpus called from postcopy_start, where the cpus are all apparently stopped ('stopped' flag set) but pause_all_vcpus is still stuck on a cond_wait on qemu_paused_cond. We suspect this is happening if a qmp_stop is

[Qemu-devel] [PATCH v2 1/5] console: add & use qemu_console_lookup_by_device_name

2016-01-26 Thread Gerd Hoffmann
We have two places needing this, and a third one will come shortly. So factor things out into a helper function to reduce code duplication. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel P. Berrange --- include/ui/console.h | 2 ++ ui/console.c

[Qemu-devel] [PULL 43/49] nbd: add missed aio_context_acquire in nbd_export_new

2016-01-26 Thread Paolo Bonzini
From: "Denis V. Lunev" blk_invalidate_cache() can call qcow2_invalidate_cache which performs IO inside. Signed-off-by: Denis V. Lunev CC: Kevin Wolf CC: Paolo Bonzini Message-Id:

[Qemu-devel] [PATCH v2 4/5] qapi: rename input axises

2016-01-26 Thread Gerd Hoffmann
Lowercase them. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel P. Berrange --- qapi-schema.json | 5 + qmp-commands.hx | 4 ++-- scripts/qapi.py | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/qapi-schema.json

[Qemu-devel] [PULL 38/49] scripts/kvm/kvm_stat: Fixup filtering

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank When filtering, the group leader event should not be disabled, as all other events under it will also be disabled. Also we should make sure that values from disabled fields will not be displayed. This also filters the fields from the log and batch

[Qemu-devel] [PULL 42/49] memory: exit when hugepage allocation fails if mem-prealloc

2016-01-26 Thread Paolo Bonzini
From: Luiz Capitulino When -mem-prealloc is passed on the command-line, the expected behavior is to exit if the hugepage allocation fails. However, this behavior is broken since commit cc57501dee which made hugepage allocation fall back to regular ram in case of faliure.

[Qemu-devel] [PULL 45/49] scripts/dump-guest-memory.py: Make methods functions

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank The functions dealing with qemu components rarely used parts of the class, so they were moved out of the class. As the uintptr_t variable is needed both within and outside the class, it was made a constant and moved to the top. Reviewed-by:

[Qemu-devel] [PULL 48/49] scripts/dump-guest-memory.py: Introduce multi-arch support

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank By modelling the ELF with ctypes we not only gain full python 3 support but can also create dumps for different architectures more easily. Tested-by: Andrew Jones Acked-by: Laszlo Ersek Signed-off-by:

[Qemu-devel] [PULL 47/49] scripts/dump-guest-memory.py: Cleanup functions

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Increase readability by adding newlines and comments, as well as removing wrong whitespaces and C style braces around conditionals and loops. Reviewed-by: Laszlo Ersek Signed-off-by: Janosch Frank

Re: [Qemu-devel] [PATCH] net/traffic-mirrorer:Add traffic-mirroer

2016-01-26 Thread Yang Hongyang
On 01/26/2016 04:59 PM, Zhang Chen wrote: From: ZhangChen Traffic-mirrorer is a plugin of netfilter. netfilter plugin It make qemu has ability to copy and mirror guest's s/make/makes/has the ability net packet. we output packet to chardev. there

[Qemu-devel] [PATCH v7 1/3] i386/acpi: make floppy controller object dynamic

2016-01-26 Thread Igor Mammedov
From: Roman Kagan Instead of statically declaring the floppy controller in DSDT, with its _STA method depending on some obscure bit in the parent ISA bridge, add the object dynamically to DSDT via AML API only when the controller is present. The _STA method is no longer

Re: [Qemu-devel] [Patch v12 resend 05/10] docs: block replication's description

2016-01-26 Thread Stefan Hajnoczi
On Mon, Jan 04, 2016 at 02:03:16PM +0800, Wen Congyang wrote: > On 12/23/2015 05:26 PM, Stefan Hajnoczi wrote: > > On Wed, Dec 02, 2015 at 01:31:46PM +0800, Wen Congyang wrote: > >> +== Failure Handling == > >> +There are 6 internal errors when block replication is running: > >> +1. I/O error on

[Qemu-devel] [PATCH v2 5/5] qapi: promote input-send-event to stable

2016-01-26 Thread Gerd Hoffmann
With all fixups being in place now, we can promote input-send-event to stable abi by removing the x- prefix. Signed-off-by: Gerd Hoffmann --- qapi-schema.json | 12 +++- qmp-commands.hx | 14 +++--- ui/input.c | 6 +++--- 3 files changed, 13

[Qemu-devel] [PATCH v7 3/3] i386: populate floppy drive information in DSDT

2016-01-26 Thread Igor Mammedov
From: Roman Kagan On x86-based systems Linux determines the presence and the type of floppy drives via a query of a CMOS field. So does SeaBIOS when populating the return data for int 0x13 function 0x08. However Windows doesn't do it. Instead, it requests this information

[Qemu-devel] [PATCH v2 2/5] qapi: switch x-input-send-event from console to device+head

2016-01-26 Thread Gerd Hoffmann
Use display device qdev id and head number instead of console index to specify the QemuConsole. This makes things consistent with input devices (for input routing) and vnc server configuration, which both use display and head too. Signed-off-by: Gerd Hoffmann Reviewed-by:

Re: [Qemu-devel] [PATCH v17 7/9] add MachineClass->default_props for setting default device properties

2016-01-26 Thread Eduardo Habkost
On Tue, Jan 26, 2016 at 11:28:01AM +0100, Igor Mammedov wrote: > On Sat, 23 Jan 2016 12:59:56 -0200 > Eduardo Habkost wrote: > > > On Tue, Jan 19, 2016 at 02:06:27PM +0100, Igor Mammedov wrote: > > > Signed-off-by: Igor Mammedov > > > --- > > >

Re: [Qemu-devel] [PATCH ipxe] build: Enable IPv6 for qemu

2016-01-26 Thread Gerd Hoffmann
On Di, 2015-11-17 at 12:25 -0500, Cole Robinson wrote: > --- > I assume it's fine to enable... > > A fedora user requested it here: > https://bugzilla.redhat.com/show_bug.cgi?id=1280318 Ping? What is the reason for ipv6 not being enabled by default? Just historical? Rarely used in practice? ROM

[Qemu-devel] [PATCH 03/14] hw/timmer: QOM'ify exynos4210_mct

2016-01-26 Thread xiaoqiang zhao
assign exynos4210_mct_init to exynos4210_mct_info.instance_init and drop the SysBusDeviceClass::init Signed-off-by: xiaoqiang zhao --- hw/timer/exynos4210_mct.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/timer/exynos4210_mct.c

[Qemu-devel] [PATCH 04/14] hw/timmer: QOM'ify exynos4210_pwm

2016-01-26 Thread xiaoqiang zhao
assign exynos4210_pwm_init to exynos4210_pwm_info.instance_init and drop the SysBusDeviceClass::init Signed-off-by: xiaoqiang zhao --- hw/timer/exynos4210_pwm.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/timer/exynos4210_pwm.c

[Qemu-devel] [PATCH 02/14] hw/timmer: QOM'ify etraxfs_timer

2016-01-26 Thread xiaoqiang zhao
assign etraxfs_timer_init to etraxfs_timer_info.instance_init and drop the SysBusDeviceClass::init Signed-off-by: xiaoqiang zhao --- hw/timer/etraxfs_timer.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/timer/etraxfs_timer.c

[Qemu-devel] [PATCH 09/14] hw/timmer: QOM'ify milkymist_sysctl

2016-01-26 Thread xiaoqiang zhao
* split milkymist_sysctl_init into milkymist_sysctl_info.instance_init and milkymist_sysctl_realize * use DeviceClass::realize instead of SysBusDeviceClass::init Signed-off-by: xiaoqiang zhao --- hw/timer/milkymist-sysctl.c | 19 --- 1 file changed, 12

[Qemu-devel] [PATCH 10/14] hw/timmer: QOM'ify pl031

2016-01-26 Thread xiaoqiang zhao
assign pl031_init to pl031_info.instance_init and drop the SysBusDeviceClass::init Signed-off-by: xiaoqiang zhao --- hw/timer/pl031.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hw/timer/pl031.c b/hw/timer/pl031.c index 34d9b44..b3a2152

[Qemu-devel] [PATCH 08/14] hw/timmer: QOM'ify m48txx_sysbus

2016-01-26 Thread xiaoqiang zhao
* split m48t59_init1 into m48txx_sysbus_type_info.instance_init and m48t59_realize * use DeviceClass::realize instead of SysBusDeviceClass::init Signed-off-by: xiaoqiang zhao --- hw/timer/m48t59.c | 35 ++- 1 file changed, 18 insertions(+),

[Qemu-devel] [PATCH 00/14] QOM'ify hw/timmer/*

2016-01-26 Thread xiaoqiang zhao
This patch series QOM'ify timmer code under hw/timmer directory. Main idea is to split the initfn's work, some to TypeInfo.instance_init and some is placed in DeviceClass::realize. We drop the use of SysBusDeviceClass::init if possible. xiaoqiang zhao (14): hw/timmer: QOM'ify arm_timer

[Qemu-devel] [PATCH 01/14] hw/timmer: QOM'ify arm_timer

2016-01-26 Thread xiaoqiang zhao
* assign icp_pit_init to icp_pit_info.instance_init * split sp804_init into sp804_info.instance_init (sp804_init) and sp804_realize * use DeviceClass::realize instead of SysBusDeviceClass::init Signed-off-by: xiaoqiang zhao --- hw/timer/arm_timer.c | 38

[Qemu-devel] [PATCH 05/14] hw/timmer: QOM'ify exynos4210_rtc

2016-01-26 Thread xiaoqiang zhao
assign exynos4210_rtc_init to exynos4210_rtc_info.instance_init and drop the SysBusDeviceClass::init Signed-off-by: xiaoqiang zhao --- hw/timer/exynos4210_rtc.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/timer/exynos4210_rtc.c

Re: [Qemu-devel] [PATCH] sdl: shorten the GUI refresh interval when mouse or keyboard is active

2016-01-26 Thread Gerd Hoffmann
On Di, 2016-01-12 at 20:38 +0100, Jindřich Makovička wrote: > Updated patch attached. Added to patch queue. thanks, Gerd

[Qemu-devel] [PATCH 07/14] hw/timmer: QOM'ify lm32_timer

2016-01-26 Thread xiaoqiang zhao
* split lm32_timer_init into lm32_timer_info.instance_init and lm32_timer_realize * use DeviceClass::realize instead of SysBusDeviceClass::init Signed-off-by: xiaoqiang zhao --- hw/timer/lm32_timer.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-)

Re: [Qemu-devel] [Patch v12 resend 08/10] Implement new driver for block replication

2016-01-26 Thread Stefan Hajnoczi
On Mon, Jan 04, 2016 at 01:50:40PM +0800, Wen Congyang wrote: > On 12/23/2015 05:47 PM, Stefan Hajnoczi wrote: > > On Wed, Dec 02, 2015 at 01:37:25PM +0800, Wen Congyang wrote: > >> +/* > >> + * Only write to active disk if the sectors have > >> + * already been allocated in active

[Qemu-devel] [PATCH 06/14] hw/timmer: QOM'ify grlib_gptimer

2016-01-26 Thread xiaoqiang zhao
* split grlib_gptimer_init into grlib_gptimer_info.instance_init and grlib_gptimer_realize * use DeviceClass::realize instead of SysBusDeviceClass::init Signed-off-by: xiaoqiang zhao --- hw/timer/grlib_gptimer.c | 30 ++ 1 file changed, 18

Re: [Qemu-devel] [PULL 00/49] chardev, NBD, cpus, scripts/ changes for 2015-01-26

2016-01-26 Thread Peter Maydell
On 26 January 2016 at 13:46, Paolo Bonzini wrote: > The following changes since commit 3db34bf64ab4f8797565dd8750003156c32b301d: > > Merge remote-tracking branch 'remotes/afaerber/tags/qom-devices-for-peter' > into staging (2016-01-18 17:40:50 +) > > are available in

Re: [Qemu-devel] [PATCH v2 0/5] q35: Remove old machines and unused compat code

2016-01-26 Thread Laszlo Ersek
On 01/26/16 11:15, Igor Mammedov wrote: > On Mon, 25 Jan 2016 12:27:47 +0100 > Laszlo Ersek wrote: > >> On 01/23/16 17:02, Eduardo Habkost wrote: >>> This is another attempt to remove old q35 machine code. Now I am >>> also removing unused compat code to demonstrate the

Re: [Qemu-devel] [PATCH v3] vfio/common: Check iova with limit not with size

2016-01-26 Thread Pierre Morel
On 01/22/2016 11:19 PM, Alex Williamson wrote: On Fri, 2016-01-22 at 15:14 -0700, Alex Williamson wrote: On Thu, 2016-01-21 at 14:15 +0100, Pierre Morel wrote: On 01/20/2016 04:46 PM, Alex Williamson wrote: On Wed, 2016-01-20 at 16:14 +0100, Pierre Morel wrote: On 01/12/2016 07:16 PM, Alex

[Qemu-devel] [PATCH 6/5] pc: Remove unused pc_acpi_init() function

2016-01-26 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost --- Additional code we can remove after removing the old q35 machines. --- hw/i386/pc.c | 28 include/hw/i386/pc.h | 1 - 2 files changed, 29 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index

[Qemu-devel] [PATCH 7/5] acpi: Remove unused acpi_table_add_builtin() function

2016-01-26 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost --- Additional code removal. --- hw/acpi/core.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/hw/acpi/core.c b/hw/acpi/core.c index 21e113d..c2a5383 100644 --- a/hw/acpi/core.c +++ b/hw/acpi/core.c @@ -309,14

[Qemu-devel] [PULL v2 00/49] chardev, NBD, cpus, scripts/ changes for 2015-01-26

2016-01-26 Thread Paolo Bonzini
The following changes since commit 3db34bf64ab4f8797565dd8750003156c32b301d: Merge remote-tracking branch 'remotes/afaerber/tags/qom-devices-for-peter' into staging (2016-01-18 17:40:50 +) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for

Re: [Qemu-devel] [RFC PATCH] vfio: Add sysfsdev property for pci & platform

2016-01-26 Thread Eric Auger
Hi Alex, I did a try with both legacy cmd line and new one and it works fine for vfio platform too: -device vfio-calxeda-xgmac,host="fff51000.ethernet" -device vfio-calxeda-xgmac,sysfsdev="/sys/bus/platform/devices/fff51000.ethernet" Tested-by: Eric Auger Reviewed-by:

Re: [Qemu-devel] [PULL 00/49] chardev, NBD, cpus, scripts/ changes for 2015-01-26

2016-01-26 Thread Daniel P. Berrange
On Tue, Jan 26, 2016 at 02:38:35PM +, Peter Maydell wrote: > On 26 January 2016 at 13:46, Paolo Bonzini wrote: > > The following changes since commit 3db34bf64ab4f8797565dd8750003156c32b301d: > > > > Merge remote-tracking branch > >

Re: [Qemu-devel] [PATCH v5] qom, qmp, hmp, qapi: create qom-type-prop-list for class properties

2016-01-26 Thread Eduardo Habkost
On Mon, Jan 25, 2016 at 11:24:47AM +0300, Valentin Rakush wrote: > This patch adds support for qom-type-prop-list command to list object > class properties. A later patch will use this functionality to > implement x86_64-cpu properties. > > Signed-off-by: Valentin Rakush

Re: [Qemu-devel] [PATCH v5] qom, qmp, hmp, qapi: create qom-type-prop-list for class properties

2016-01-26 Thread Eric Blake
On 01/26/2016 08:35 AM, Eduardo Habkost wrote: > On Mon, Jan 25, 2016 at 11:24:47AM +0300, Valentin Rakush wrote: >> This patch adds support for qom-type-prop-list command to list object >> class properties. A later patch will use this functionality to >> implement x86_64-cpu properties. >> > >

Re: [Qemu-devel] [PATCH v5] qom, qmp, hmp, qapi: create qom-type-prop-list for class properties

2016-01-26 Thread Daniel P. Berrange
On Tue, Jan 26, 2016 at 01:35:38PM -0200, Eduardo Habkost wrote: > On Mon, Jan 25, 2016 at 11:24:47AM +0300, Valentin Rakush wrote: > > This patch adds support for qom-type-prop-list command to list object > > class properties. A later patch will use this functionality to > > implement x86_64-cpu

[Qemu-devel] [PULL 0/8] xen-20160126

2016-01-26 Thread Stefano Stabellini
-20160126 for you to fetch changes up to f4297d663d92844f87aeb6ea762244167490dadb: xen: make it possible to build without the Xen PV domain builder (2016-01-26 15:03:38 +) Xen 2016/01/26

[Qemu-devel] [PULL 6/8] xen: Use stable library interfaces when they are available.

2016-01-26 Thread Stefano Stabellini
From: Ian Campbell In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. Specifically libxenevtchn, libxengnttab and libxenforeignmemory. Previous patches have already laid

[Qemu-devel] [PULL 3/8] xen: Switch to libxengnttab interface for compat shims.

2016-01-26 Thread Stefano Stabellini
From: Ian Campbell In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. One such library will be libxengnttab which provides access to grant tables. In preparation for this

[Qemu-devel] [PULL 4/8] xen: Switch uses of xc_map_foreign_range into xc_map_foreign_pages

2016-01-26 Thread Stefano Stabellini
From: Ian Campbell In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. One such library will be libxenforeignmemory which provides access to privileged foreign mappings and

[Qemu-devel] [PULL 2/8] xen: Switch to libxenevtchn interface for compat shims.

2016-01-26 Thread Stefano Stabellini
From: Ian Campbell In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. One such library will be libxenevtchn which provides access to event channels. In preparation for

[Qemu-devel] [PULL 5/8] xen: Switch uses of xc_map_foreign_{pages, bulk} to use libxenforeignmemory API.

2016-01-26 Thread Stefano Stabellini
From: Ian Campbell In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. One such library will be libxenforeignmemory which provides access to privileged foreign mappings and

[Qemu-devel] [PULL 1/8] xen_console: correctly cleanup primary console on teardown.

2016-01-26 Thread Stefano Stabellini
From: Ian Campbell All of the work in con_disconnect applies to the primary console case (when xendev->dev is NULL). Therefore remove the early check and bail and allow it to fall through. All of the existing code is correctly conditional already. The ->dev and

[Qemu-devel] [PULL 7/8] xen: domainbuild: reopen libxenctrl interface after forking for domain watcher.

2016-01-26 Thread Stefano Stabellini
From: Ian Campbell Using an existing libxenctrl handle after a fork was never particularly safe (especially if foreign mappings existed at the time of the fork) and the xc fd has been unavailable for many releases. Reopen the handle after fork and therefore do away with

[Qemu-devel] [PULL 8/8] xen: make it possible to build without the Xen PV domain builder

2016-01-26 Thread Stefano Stabellini
From: Ian Campbell Until the previous patch this relied on xc_fd(), which was only implemented for Xen 4.0 and earlier. Given this wasn't working since Xen 4.0 I have marked this as disabled by default. Removing this support drops the use of a bunch of symbols from

Re: [Qemu-devel] [PATCH v2 05/13] block: Hide HBitmap in block dirty bitmap interface

2016-01-26 Thread Vladimir Sementsov-Ogievskiy
On 20.01.2016 09:11, Fam Zheng wrote: HBitmap is an implementation detail of block dirty bitmap that should be hidden from users. Introduce a BdrvDirtyBitmapIter to encapsulate the underlying HBitmapIter. A small difference in the interface is, before, an HBitmapIter is initialized in place,

Re: [Qemu-devel] [PATCH v2 1/5] console: add & use qemu_console_lookup_by_device_name

2016-01-26 Thread Eric Blake
On 01/26/2016 07:07 AM, Gerd Hoffmann wrote: > We have two places needing this, and a third one will come shortly. > So factor things out into a helper function to reduce code duplication. > > Signed-off-by: Gerd Hoffmann > Reviewed-by: Daniel P. Berrange

Re: [Qemu-devel] [PATCH v14 0/8] Block replication for continuous checkpoints

2016-01-26 Thread Stefan Hajnoczi
On Sun, Jan 24, 2016 at 09:34:49PM +0800, Wen Congyang wrote: > Stefan:ping > > Do you have time to review this series patchset? Yes, I will review it tomorrow. Stefan signature.asc Description: PGP signature

[Qemu-devel] [PATCH] char: make io_channel_send be used unconditionally

2016-01-26 Thread Daniel P. Berrange
The io_channel_send_full() method was used unconditionally, but the io_channel_send() method was only used from !_WIN32 code paths. Some versions of Mingw toolchain will complain about the method being defined but not used as a result. The io_channel_send() API doesn't really simplify life very

Re: [Qemu-devel] [PATCH v2 2/5] qapi: switch x-input-send-event from console to device+head

2016-01-26 Thread Eric Blake
On 01/26/2016 07:07 AM, Gerd Hoffmann wrote: > Use display device qdev id and head number instead of console index to > specify the QemuConsole. This makes things consistent with input > devices (for input routing) and vnc server configuration, which both use > display and head too. > >

Re: [Qemu-devel] [PATCH v2 4/5] qapi: rename input axises

2016-01-26 Thread Eric Blake
On 01/26/2016 07:07 AM, Gerd Hoffmann wrote: > Lowercase them. > > Signed-off-by: Gerd Hoffmann > Reviewed-by: Daniel P. Berrange > --- > qapi-schema.json | 5 + > qmp-commands.hx | 4 ++-- > scripts/qapi.py | 1 - > 3 files changed, 3

Re: [Qemu-devel] [PATCH v2 4/5] qapi: rename input axises

2016-01-26 Thread Eric Blake
On 01/26/2016 07:07 AM, Gerd Hoffmann wrote: > Lowercase them. In the subject, s/axises/axes/, or, since that can be confused with the plural of a weapon, try this rewrite: qapi: rename InputAxis values > > Signed-off-by: Gerd Hoffmann > Reviewed-by: Daniel P. Berrange

Re: [Qemu-devel] [PATCH v2 5/5] qapi: promote input-send-event to stable

2016-01-26 Thread Eric Blake
On 01/26/2016 07:07 AM, Gerd Hoffmann wrote: > With all fixups being in place now, we can promote input-send-event > to stable abi by removing the x- prefix. > > Signed-off-by: Gerd Hoffmann > --- Reviewed-by: Eric Blake -- Eric Blake eblake redhat com

<    1   2   3   4   >