Re: [Qemu-devel] [PATCH] hw/sh4/sh_pci.c: Use ldl_le_p() and stl_le_p()

2016-06-12 Thread Aurelien Jarno
On 2016-06-10 17:10, Peter Maydell wrote: > Use ldl_le_p() and stl_le_p() instead of le32_to_cpup() and > cpu_to_le32w(); the former handle misaligned addresses and don't > need casts, and the latter are deprecated. > > Signed-off-by: Peter Maydell > --- > hw/sh4/sh_pci.c | 4 ++-- > 1 file chan

Re: [Qemu-devel] [Qemu-devel [RFC] [WIP] v2] Keeping the Source side alive incase of network failure (Migration recovery from network failure)

2016-06-12 Thread haris iqbal
On Thu, Jun 9, 2016 at 2:11 AM, Eric Blake wrote: > On 06/08/2016 12:13 PM, Md Haris Iqbal wrote: > > The subject line is long, and has a typo (s/incase/in case/). Also, the > mailing list automatically prepends [Qemu-devel], so you shouldn't > repeat it manually. Better might have been a short

Re: [Qemu-devel] [PATCH v2 11/22] hw/intc/arm_gicv3: Implement GICv3 distributor registers

2016-06-12 Thread Shannon Zhao
On 2016/5/26 22:55, Peter Maydell wrote: > +static uint8_t gicd_read_ipriorityr(GICv3State *s, MemTxAttrs attrs, int irq) > +{ > +/* Read the value of GICD_IPRIORITYR for the specified interrupt, > + * honouring security state (these are RAZ/WI for Group 0 or Secure > + * Group 1 inte

[Qemu-devel] [PATCH 10/10] ppc: Add P7/P8 Power Management instructions

2016-06-12 Thread Cédric Le Goater
From: Benjamin Herrenschmidt This adds the ISA 2.06 and later power management instructions (doze, nap, sleep and rvwinkle) and associated wakeup cause testing in LPCR Signed-off-by: Benjamin Herrenschmidt [clg: fixed checkpatch.pl errors ] Signed-off-by: Cédric Le Goater --- target-ppc/cpu-q

[Qemu-devel] [PATCH 08/10] ppc: Turn a bunch of booleans from int to bool

2016-06-12 Thread Cédric Le Goater
From: Benjamin Herrenschmidt Signed-off-by: Benjamin Herrenschmidt Reviewed-by: David Gibson --- target-ppc/translate.c | 37 ++--- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index b594b18399f7

[Qemu-devel] [PATCH 09/10] ppc: Move exception generation code out of line

2016-06-12 Thread Cédric Le Goater
From: Benjamin Herrenschmidt There's no point inlining this, if you hit the exception case you exit anyway, and not inlining saves about 100K of code size (and cache footprint). Signed-off-by: Benjamin Herrenschmidt --- target-ppc/translate.c | 9 ++--- 1 file changed, 6 insertions(+), 3 d

[Qemu-devel] [PATCH 04/10] ppc: Fix POWER7 and POWER8 exception definitions

2016-06-12 Thread Cédric Le Goater
From: Benjamin Herrenschmidt We were initializing unused ones and missing some Signed-off-by: Benjamin Herrenschmidt Reviewed-by: David Gibson [clg: fixed checkpatch.pl errors ] Signed-off-by: Cédric Le Goater --- target-ppc/cpu.h| 11 ++- target-ppc/translate_init.c | 27

[Qemu-devel] [PATCH 07/10] ppc: Add real mode CI load/store instructions for P7 and P8

2016-06-12 Thread Cédric Le Goater
From: Benjamin Herrenschmidt Those instructions are only available in hypervisor real mode and allow cache inhibited garded access to devices in that mode. Signed-off-by: Benjamin Herrenschmidt [clg: fixed checkpatch.pl errors ] Signed-off-by: Cédric Le Goater --- This patch still has a coupl

[Qemu-devel] [PATCH 03/10] ppc: Rework POWER7 & POWER8 exception model (part 2)

2016-06-12 Thread Cédric Le Goater
From: Benjamin Herrenschmidt Properly implement LPES0/1 handling for HV vs. !HV mode. Signed-off-by: Benjamin Herrenschmidt [clg: AIL implementation was fixed in commit 5c94b2a5e5ef fixed checkpatch.pl errors ] Signed-off-by: Cédric Le Goater --- target-ppc/excp_helper.c | 134 +

[Qemu-devel] [PATCH 06/10] ppc: Rework generation of priv and inval interrupts

2016-06-12 Thread Cédric Le Goater
From: Benjamin Herrenschmidt Recent server processors use the Hypervisor Emulation Assistance interrupt for illegal instructions and *some* type of SPR accesses. Also the code was always generating inval instructions even for priv violations due to setting the wrong flags Finally, the checking

[Qemu-devel] [PATCH 02/10] ppc: Create cpu_ppc_set_papr() helper (for LPCR)

2016-06-12 Thread Cédric Le Goater
From: Benjamin Herrenschmidt And move the code adjusting the MSR mask and calling kvmppc_set_papr() to it. This allows us to add a few more things such as disabling setting of MSR:HV and appropriate LPCR bits which will be used when fixing the exception model. Signed-off-by: Benjamin Herrenschmi

[Qemu-devel] [PATCH 05/10] ppc: Fix generation if ISI/DSI vs. HV mode

2016-06-12 Thread Cédric Le Goater
From: Benjamin Herrenschmidt Under some circumstances, we need to direct ISI and DSI interrupts at the hypervisor, turning them into HISI/HDSI, and using different SPRs (HDSISR and HDAR) depending on the combination of MSR_DR and the corresponding VPM bits in LPCR. This moves part of the code in

[Qemu-devel] [PATCH 00/10] rework exception model to support the HV mode

2016-06-12 Thread Cédric Le Goater
Hello, Here is a new set bringing more changes required for the powernv platform. The major one is the rework of the exception model to support the HV mode. It was tested with a pseries guest, KVM and TCG, and with a mac99 guest ! The next serie will cover a rework of XICS to support native mode

[Qemu-devel] [PATCH 01/10] ppc: Fix rfi/rfid/hrfi/... emulation

2016-06-12 Thread Cédric Le Goater
From: Benjamin Herrenschmidt This reworks emulation of the various "rfi" variants. I removed some masking bits that I couldn't make sense of, the only bit that I am aware we should mask here is POW, the CPU's MSR mask should take care of the rest. This also fixes some problems when running 32-bi

Re: [Qemu-devel] [PATCH v2 2/9] migration: Fix a potential issue

2016-06-12 Thread Li, Liang Z
> > > > +static void wait_for_decompress_done(void) { > > > > +int idx, thread_count; > > > > + > > > > +if (!migrate_use_compression()) { > > > > +return; > > > > +} > > > > + > > > > +thread_count = migrate_decompress_threads(); > > > > +qemu_mutex_lock(&decomp_done_lo

[Qemu-devel] [Bug 1591724] Re: Windows 7 installation DVD can't boot in qemu 2.6.0/OVMF

2016-06-12 Thread Aleksei Kovura
Running on latest git code a93c1bdf0bd4689287094ddb2aae3dc907da3535, DVD loads installation screen on everything except cirrus (same symptom). I don't really need cirrus, but I can test patches if you want. -- You received this bug notification because you are a member of qemu- devel-ml, which is

Re: [Qemu-devel] [PATCH v2] migration: Don't use *_to_cpup() and cpu_to_*w()

2016-06-12 Thread Amit Shah
On (Fri) 10 Jun 2016 [17:09:22], Peter Maydell wrote: > The *_to_cpup() and cpu_to_*w() functions just compose a pointer > dereference with a byteswap. Instead use ld*_p() and st*_p(), > which handle potential pointer misalignment and avoid the need > to cast the pointer. > > Signed-off-by: Peter

Re: [Qemu-devel] [PATCH v2 2/9] migration: Fix a potential issue

2016-06-12 Thread Amit Shah
On (Fri) 10 Jun 2016 [15:03:15], Li, Liang Z wrote: > > Subject: Re: [PATCH v2 2/9] migration: Fix a potential issue > > > > On (Thu) 05 May 2016 [15:32:52], Liang Li wrote: > > > At the end of live migration and before vm_start() on the destination > > > side, we should make sure all the decompre

Re: [Qemu-devel] [PATCH v2] net: mipsnet: check transmit buffer size before sending

2016-06-12 Thread Jason Wang
On 2016年06月08日 18:37, P J P wrote: From: Prasad J Pandit When processing MIPSnet I/O port write operation, it uses a transmit buffer tx_buffer[MAX_ETH_FRAME_SIZE=1514]. Two indices 's->tx_written' and 's->tx_count' are used to control data written to this buffer. If the two were to be equal b

Re: [Qemu-devel] [PATCH V3] net: fix qemu_announce_self not emitting packets

2016-06-12 Thread Jason Wang
On 2016年06月09日 17:39, Peter Lieven wrote: commit fefe2a78 accidently dropped the code path for injecting raw packets. This feature is needed for sending gratuitous ARPs after an incoming migration has completed. The result is increased network downtime for vservers where the network card is not

[Qemu-devel] [PATCH] target-i386: kvm: cache KVM_GET_SUPPORTED_CPUID data

2016-06-12 Thread Chao Peng
KVM_GET_SUPPORTED_CPUID ioctl is called frequently when initializing CPU. Depends on CPU features and CPU count, the number of calls can be extremely high which slows down QEMU booting significantly. In our testing, we saw 5922 calls with switches: -cpu SandyBridge -smp 6,sockets=6,cores=1,thr

Re: [Qemu-devel] [PATCH v20 00/10] Block replication for continuous checkpoints

2016-06-12 Thread Changlong Xie
On 06/08/2016 09:36 PM, Eric Blake wrote: On 06/07/2016 07:11 PM, Changlong Xie wrote: Block replication is a very important feature which is used for continuous checkpoints(for example: COLO). Side note: Including qemu-trivial in CC: on a patch series at v20 feels wrong. Obviously it is not

Re: [Qemu-devel] [PATCH v20 07/10] Introduce new APIs to do replication operation

2016-06-12 Thread Changlong Xie
On 06/08/2016 09:41 PM, Eric Blake wrote: On 06/07/2016 07:11 PM, Changlong Xie wrote: Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Signed-off-by: Changlong Xie No mention of the API names in the commit message? Grepping 'git log' is easier if there is s

Re: [Qemu-devel] [RFC PATCH 0/3] x86: Add support for guest DMA dirty page tracking

2016-06-12 Thread Alexander Duyck
On Sat, Jun 11, 2016 at 8:03 PM, Zhou Jie wrote: > Hi, Alex > > > On 2016/6/9 23:39, Alexander Duyck wrote: >> >> On Thu, Jun 9, 2016 at 3:14 AM, Zhou Jie >> wrote: >>> >>> TO Alex >>> TO Michael >>> >>>In your solution you add a emulate PCI bridge to act as >>>a bridge between direct ass

[Qemu-devel] [Bug 1591611] Re: chroot using qemu-x86_64-static fails on ppc64el

2016-06-12 Thread Timothy Pearson
Are there any plans to implement these signal handlers? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1591611 Title: chroot using qemu-x86_64-static fails on ppc64el Status in QEMU: New Bug des

Re: [Qemu-devel] [PATCH v20 00/10] Block replication for continuous checkpoints

2016-06-12 Thread Changlong Xie
On 06/10/2016 09:22 PM, Michael Tokarev wrote: 08.06.2016 04:11, Changlong Xie wrote: Block replication is a very important feature which is used for continuous checkpoints(for example: COLO). ... I'm not sure I understand why this has been sent to qemu-trivial? :) $HOME/.gitconfig mislead

Re: [Qemu-devel] [PATCH] Use "-s" instead of "--quiet" to resolve non-fatal build error on FreeBSD.

2016-06-12 Thread Fam Zheng
On Sun, 06/12 15:19, Sean Bruno wrote: > The --quiet argument is not available on all operating systems. Use -s > instead to match the rest of the Makefile uses. This fixes a non-fatal > error see on FreeBSD. s/see/seen (Perhaps can be fixed when applying.) Reviewed-by: Fam Zheng > > Signed

[Qemu-devel] [Bug 1591628] Re: 2.6.0 hangs linux vm using vfio for pci passthrough of graphics card

2016-06-12 Thread Alex Williamson
I'm not able to reproduce. Testing with an HD8570 and the following commandline: /usr/local/bin/qemu-system-x86_64 -enable-kvm -M q35 -m 4G -cpu host -smp 8 -vga none -device ioh3420,bus=pcie.0,addr=1c.0,port=1,chassis=1,id=root.1 -device vfio- pci,host=2:00.0,bus=root.1,x-vga=on,addr=0.0 -usb -d

[Qemu-devel] [PATCH] Use "-s" instead of "--quiet" to resolve non-fatal build error on FreeBSD.

2016-06-12 Thread Sean Bruno
The --quiet argument is not available on all operating systems. Use -s instead to match the rest of the Makefile uses. This fixes a non-fatal error see on FreeBSD. Signed-off-by: Sean Bruno --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile ind

[Qemu-devel] [Bug 1591611] Re: chroot using qemu-x86_64-static fails on ppc64el

2016-06-12 Thread Peter Maydell
We don't have an implementation of the target-specific signal handling code for the x86-64 guest. Anything that cares about signals therefore won't work with this target. In general the x86-64 guest support for linux-user isn't very good; ARM or AArch64 guest should behave rather better. -- You

Re: [Qemu-devel] OS-X hypervisor.framework support

2016-06-12 Thread Peter Maydell
On 12 June 2016 at 17:37, Alex Bligh wrote: > My thesis is that's easier to emulate the KVM API and translate it > to Hypervisor.Framework calls, than modify qemu everywhere so it > calls Hypervisor.Framework everywhere directly, because there are > so many calls to the KVM API. I'm not entirely

Re: [Qemu-devel] [PATCH] Call cmp with "-s" instead of "--quiet"

2016-06-12 Thread Peter Maydell
On 11 June 2016 at 18:15, Sean Bruno wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > > > - --quiet isn't available on FreeBSD and doesn't seem to be used in > other places. This fixes some non-fatal build errors on FreeBSD. The > use of "-s" over "--quiet" seems to be the preferre

[Qemu-devel] [Bug 1581936] Re: Frozen Windows 7 VMs with VGA CVE-2016-3712 fix (2.6.0 and 2.5.1.1)

2016-06-12 Thread Thomas Lamprecht
I can partly confirm this, see (and parents): https://lists.gnu.org/archive/html/qemu-devel/2016-05/msg04048.html It sounds just a little strange to me, so I'll recheck to be double sure every configure option is the same on my Arch Linux and Debian machine. -- You received this bug notification

[Qemu-devel] [Bug 1591724] Re: Windows 7 installation DVD can't boot in qemu 2.6.0/OVMF

2016-06-12 Thread Laszlo Ersek
supposed to be fixed by , please confirm -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1591724 Title: Windows 7

[Qemu-devel] [Bug 1581936] Re: Frozen Windows 7 VMs with VGA CVE-2016-3712 fix (2.6.0 and 2.5.1.1)

2016-06-12 Thread Laszlo Ersek
supposed to be fixed by , please confirm -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1581936 Title: Frozen Win

[Qemu-devel] [PATCH v6 08/11] target-avr: adding instruction translation

2016-06-12 Thread Michael Rolnik
From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/translate-inst.c | 2624 +++ target-avr/translate.h | 119 ++ 2 files changed, 2743 insertions(+) create mode 100644 target-avr/translate-inst.c create mode 100644 target-avr/transl

[Qemu-devel] [PATCH v6 10/11] target-avr: saving sreg, rampD, rampX, rampY, rampD, eind in HW representation saving cpu features

2016-06-12 Thread Michael Rolnik
From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/machine.c | 105 --- 1 file changed, 84 insertions(+), 21 deletions(-) diff --git a/target-avr/machine.c b/target-avr/machine.c index 39f1ee6..9659c04 100644 --- a/target-avr/machi

[Qemu-devel] [PATCH v6 11/11] target-avr: decoder generator. currently not used by the build, can be used manually

2016-06-12 Thread Michael Rolnik
From: Michael Rolnik --- target-avr/cpugen/CMakeLists.txt | 38 +++ target-avr/cpugen/README.md| 17 + target-avr/cpugen/cpu/avr.yaml | 218 target-avr/cpugen/src/CMakeLists.txt | 62 target-avr/cpugen/src/cpugen.cpp | 51

[Qemu-devel] [PATCH v6 07/11] target-avr: adding instruction decoder

2016-06-12 Thread Michael Rolnik
From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/decode.c | 693 1 file changed, 693 insertions(+) create mode 100644 target-avr/decode.c diff --git a/target-avr/decode.c b/target-avr/decode.c new file mode 100644 index 000

[Qemu-devel] [PATCH v6 09/11] target-avr: updating translate.c to use instructions translation

2016-06-12 Thread Michael Rolnik
From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/Makefile.objs | 4 +- target-avr/translate.c | 148 +-- 2 files changed, 69 insertions(+), 83 deletions(-) diff --git a/target-avr/Makefile.objs b/target-avr/Makefile.objs index 2a

[Qemu-devel] [PATCH v6 06/11] target-avr: adding helpers for IN, OUT, SLEEP, WBR & unsupported instructions

2016-06-12 Thread Michael Rolnik
From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/helper.c | 145 target-avr/helper.h | 5 ++ 2 files changed, 140 insertions(+), 10 deletions(-) diff --git a/target-avr/helper.c b/target-avr/helper.c index f96fa27..9e2b52a

[Qemu-devel] [PATCH v6 04/11] target-avr: adding instructions encodings

2016-06-12 Thread Michael Rolnik
From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/translate-inst.h | 762 1 file changed, 762 insertions(+) create mode 100644 target-avr/translate-inst.h diff --git a/target-avr/translate-inst.h b/target-avr/translate-inst.h new fi

[Qemu-devel] [PATCH v6 03/11] target-avr: adding a sample AVR board

2016-06-12 Thread Michael Rolnik
From: Michael Rolnik Signed-off-by: Michael Rolnik --- hw/Makefile.objs | 1 + hw/avr/Makefile.objs | 21 + hw/avr/sample-io.c | 215 +++ hw/avr/sample.c | 118 4 files changed, 355 insertions(+) cre

[Qemu-devel] [PATCH v6 05/11] target-avr: adding AVR interrupt handling

2016-06-12 Thread Michael Rolnik
From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/helper.c | 59 - 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/target-avr/helper.c b/target-avr/helper.c index ad8f83e..f96fa27 100644 --- a/target-avr/helper.c

[Qemu-devel] [PATCH v6 01/11] target-avr: AVR cores support is added. 1. basic CPU structure 2. registers 3. no instructions

2016-06-12 Thread Michael Rolnik
From: Michael Rolnik Signed-off-by: Michael Rolnik --- arch_init.c | 2 + configure | 7 +- default-configs/avr-softmmu.mak | 21 +++ include/disas/bfd.h | 6 + include/sysemu/arch_init.h | 1 + target-avr/Makefile.objs

[Qemu-devel] [PATCH v6 02/11] target-avr: adding AVR CPU features/flavors

2016-06-12 Thread Michael Rolnik
From: Michael Rolnik Signed-off-by: Michael Rolnik --- target-avr/cpu.c | 307 ++- target-avr/cpu.h | 53 ++ 2 files changed, 359 insertions(+), 1 deletion(-) diff --git a/target-avr/cpu.c b/target-avr/cpu.c index 99bd788..197f9ac 10

[Qemu-devel] [PATCH v6 00/11] 8bit AVR cores

2016-06-12 Thread Michael Rolnik
This series of patches adds 8bit AVR cores to QEMU. All instruction, except BREAK/DES/SPM/SPMX, are implemented. Not fully tested yet. However I was able to execute simple code with functions. e.g fibonacci calculation. This series of patches include a non real, sample board. No fuses support yet

[Qemu-devel] [Bug 1591724] [NEW] Windows 7 installation DVD can't boot in qemu 2.6.0/OVMF

2016-06-12 Thread Aleksei Kovura
Public bug reported: With Qemu 2.5.50 (compiled from git some time ago) I can boot Windows 7 x64 installation DVD as follows: ~/code/qemu-v2/bin/slic-v2/native/x86_64-softmmu/qemu-system-x86_64 \ -machine type=pc,accel=kvm \ -enable-kvm \ -cpu host \ -m 2048 \ -vga cirrus \

Re: [Qemu-devel] OS-X hypervisor.framework support

2016-06-12 Thread Alex Bligh
On 6 Jun 2016, at 13:29, Alex Bligh wrote: > Is anyone working on support for hypervisor.framework (OS-X's equivalent to > kvm as far as I can see)? > > If not, I might have a go in my copious spare time (cough) and if anyone > would be interesting in helping, or giving advice that would be g

[Qemu-devel] [PATCH v2 1/4] hw/arm/virt: separate versioned type-init code

2016-06-12 Thread Andrew Jones
Rename machvirt_info (which is specifically for 2.6 TypeInfo) to machvirt_2_6_info, and separate the type registration of the abstract machine type from the versioned type. Signed-off-by: Andrew Jones Reviewed-by: Peter Maydell --- hw/arm/virt.c | 16 ++-- 1 file changed, 10 inserti

[Qemu-devel] [PATCH v2 3/4] hw/arm/virt: introduce DEFINE_VIRT_MACHINE_AS_LATEST

2016-06-12 Thread Andrew Jones
Create two variants of DEFINE_VIRT_MACHINE. One, just called DEFINE_VIRT_MACHINE, that does not set properties that only the latest machine type should have, and another that does. This will hopefully reduce potential for errors when adding new versions. Signed-off-by: Andrew Jones --- hw/arm/vi

[Qemu-devel] [PATCH v2 0/4] create the mach-virt 2.7 machine type

2016-06-12 Thread Andrew Jones
v2: - drop 'is_default' setting [Peter] - fix checkpatch warning [Peter] - add a couple R-b's This is the first new machine type mach-virt has received (2.6 being the first versioned machine type), so we need to do a bit more than the average "new machine type" patch. The first four patches pre

[Qemu-devel] [PATCH v2 4/4] hw/arm/virt: create the 2.7 machine type

2016-06-12 Thread Andrew Jones
Signed-off-by: Andrew Jones --- hw/arm/virt.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index df88eeb4d2ca0..d266ad7b943e3 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -42,6 +42,7 @@ #include "sysemu/sysemu.h" #i

[Qemu-devel] [PATCH v2 2/4] hw/arm/virt: introduce DEFINE_VIRT_MACHINE

2016-06-12 Thread Andrew Jones
Use DEFINE_VIRT_MACHINE to generate versioned machine type info. Signed-off-by: Andrew Jones Reviewed-by: Peter Maydell --- hw/arm/virt.c | 41 - 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 57eb7fef2

[Qemu-devel] [] [PATCH] Show all of snapshot info on every block device in output of 'info snapshots'

2016-06-12 Thread Lin Ma
Currently, the output of 'info snapshots' shows fully available snapshots. In my opinion there are 2 disadvantages: 1. It's opaque, hides some snapshot information to users. It's not convenient if users want to know more about all of snapshot information on every block device via monitor. 2. It us

Re: [Qemu-devel] [PATCH RFC 00/16] Rework SMP parameters

2016-06-12 Thread Andrew Jones
On Fri, Jun 10, 2016 at 07:40:11PM +0200, Andrew Jones wrote: > This series is a first step in eliminating smp_* global > variables (the last patch gets rid of two of them!) And, it's > a first step in deprecating '-smp' in favor of using machine > properties, e.g. > qemu -machine pc,sockets=2,cor

Re: [Qemu-devel] [PATCH RFC 00/16] Rework SMP parameters

2016-06-12 Thread Andrew Jones
On Sat, Jun 11, 2016 at 08:42:14AM +0200, Thomas Huth wrote: > On 10.06.2016 19:40, Andrew Jones wrote: > > This series is a first step in eliminating smp_* global > > variables (the last patch gets rid of two of them!) And, it's > > a first step in deprecating '-smp' in favor of using machine > >

Re: [Qemu-devel] [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties

2016-06-12 Thread Andrew Jones
On Sat, Jun 11, 2016 at 08:54:35AM +0200, Thomas Huth wrote: > On 10.06.2016 19:40, Andrew Jones wrote: > > Signed-off-by: Andrew Jones > > --- > > qom/cpu.c | 8 > > 1 file changed, 8 insertions(+) > > > > diff --git a/qom/cpu.c b/qom/cpu.c > > index 751e992de8823..024cda3eb98c8 100644

Re: [Qemu-devel] [PATCH 2/2] Fix a confusing argument name in tlb_fill() function

2016-06-12 Thread David Gibson
On Fri, Jun 10, 2016 at 07:26:39PM +0300, Sergey Sorokin wrote: > The function tlb_fill() is called with access type argument which is named > 'is_write' in its declaration. The patch fixes the argument name > to avoid a confusion. > > Signed-off-by: Sergey Sorokin > --- > include/exec/exec-all.

[Qemu-devel] [Bug 1580459] Re: Windows (10?) guest freezes entire host on shutdown if using PCI passthrough

2016-06-12 Thread Peter Maloney
FYI I had a similar issue years ago until I figured out that adding the vgarom file fixes it, eg.: -device vfio- pci,host=04:00.0,bus=root.1,multifunction=on,x-vga=on,addr=0.0,romfile=Sapphire.R7260X.1024.131106.rom For radeon, you can look in /sys. eg. we see /sys/devices/pci:00/:00

[Qemu-devel] [Bug 1591628] Re: 2.6.0 hangs linux vm using vfio for pci passthrough of graphics card

2016-06-12 Thread Peter Maloney
And here's the qemu command (missing \ at the end of the lines) qemu-system-x86_64 -enable-kvm -M q35 -m 3584 -cpu host -boot c -smp 8,sockets=1,cores=8,threads=1 -vga none -device ioh3420,bus=pcie.0,addr=1c.0,port=1,chassis=1,id=root.1 -device vfio-pci,host=0

Re: [Qemu-devel] [PATCH v2 0/3] Support building qemu-user powered docker test images

2016-06-12 Thread Fam Zheng
On Wed, 06/08 17:35, Alex Bennée wrote: > Hi, > > This is a re-spin of the previous series built on top of > fam/docker.next. I've made the changes suggested in the last review > and split the first patch apart to separate (and fix) the build > directory changes first. > > Now it no longer messes

[Qemu-devel] [Bug 1591628] [NEW] 2.6.0 hangs linux vm using vfio for pci passthrough of graphics card

2016-06-12 Thread Peter Maloney
Public bug reported: Not a duplicate of my old bug 1488363 qemu version 2.5.1 works fine qemu version 2.6.0 fails seabios 1.9.2-1 using kernel 4.5.5 with grsecurity I built using the arch packaging tools, but commented out all the patch code, so it should be vanilla. The problem is just that

Re: [Qemu-devel] [PATCH v2 3/3] add debian-bootstrap.docker target (and pre script)

2016-06-12 Thread Fam Zheng
On Wed, 06/08 17:35, Alex Bennée wrote: > Together with the debian-bootstrap.pre script can now build an arbitrary > architecture of Debian using debootstrap. The docker script will now > search for an associated $dockerfile.pre script which gets run in the > same build context as the dockerfile wi