Re: [Qemu-devel] [PATCHv2] target/ppc, spapr: Move VPA information to machine_data

2018-06-16 Thread David Gibson
On Fri, Jun 15, 2018 at 04:00:24PM +0200, Greg Kurz wrote: > On Fri, 15 Jun 2018 22:29:28 +1000 > David Gibson wrote: > > > CPUPPCState currently contains a number of fields containing the state of > > the VPA. The VPA is a PAPR specific concept covering several guest/host > > shared memory area

Re: [Qemu-devel] [PATCH 3/5] spapr_cpu_core: add missing rollback on realization path

2018-06-16 Thread David Gibson
On Fri, Jun 15, 2018 at 03:24:18PM +0200, Greg Kurz wrote: > On Fri, 15 Jun 2018 22:32:44 +1000 > David Gibson wrote: > > > On Fri, Jun 15, 2018 at 10:01:47AM +0200, Greg Kurz wrote: > > > On Fri, 15 Jun 2018 09:07:24 +0200 > > > Greg Kurz wrote: > > > > > > > On Fri, 15 Jun 2018 16:29:15 +10

Re: [Qemu-devel] [PATCH] hw/isa/smc37c669: Change the parallel I/O base to 378H

2018-06-16 Thread Richard Henderson
On 06/14/2018 01:39 PM, Philippe Mathieu-Daudé wrote: > On the Alpha DP264 machine, the Cirrus VGA is I/O mapped > in the 3C0H-3CFH range, thus I/O base used by the parallel > device clashes, and since a4cb773928e the VGA is not > working: > > (qemu) info mtree > address-space: memory >

Re: [Qemu-devel] [RFC PATCH v4 1/1] SPARC64: add icount support

2018-06-16 Thread Richard Henderson
On 06/14/2018 09:33 PM, Mark Cave-Ayland wrote: > This patch adds gen_io_start()/gen_io_end() to various instructions as > required > in order to boot my OpenBIOS test images on qemu-system-sparc64 with icount > enabled. > > Signed-off-by: Mark Cave-Ayland > --- > target/sparc/translate.c | 111

Re: [Qemu-devel] [PATCH] target/arm: Allow ARMv6-M Thumb2 instructions

2018-06-16 Thread Richard Henderson
On 06/15/2018 12:55 AM, Peter Maydell wrote: >> +uint32_t armv6m_insn[] = {0xf3808000 /* msr */, 0xf3b08040 /* dsb */, >> + 0xf3b08050 /* dmb */, 0xf3b08060 /* isb */, >> + 0xf3e08000 /* mrs */, 0xf000d000 /* bl */}; >> +uint32_t arm

[Qemu-devel] [Bug 1777293] [NEW] [REQUEST[ SHARING MEMORY WITH HOST

2018-06-16 Thread john maser
Public bug reported: Instead of a preallocated memory heap I would like for QEMU to share memory using shm. Example: Instead of using 16gb out of 32gb of ram to run Windows 10, there would be no option to allocate it, but to share the hosts resources; ie giving the host full access to the entire

[Qemu-devel] [PATCH v3 11/13] 9p: darwin: Implement compatibility for mknodat

2018-06-16 Thread Keno Fischer
Darwin does not support mknodat. However, to avoid race conditions with later setting the permissions, we must avoid using mknod on the full path instead. We could try to fchdir, but that would cause problems if multiple threads try to call mknodat at the same time. However, luckily there is a solu

[Qemu-devel] [PATCH v3 12/13] 9p: darwin: virtfs-proxy: Implement setuid code for darwin

2018-06-16 Thread Keno Fischer
Darwin does not have linux capabilities, so make that code linux-only. Darwin also does not have setresuid/gid. The correct way to temporarily drop capabilities is to call seteuid/gid. Also factor out the code that acquires acquire_dac_override into a separate function in the linux implementation.

[Qemu-devel] [PATCH v3 13/13] 9p: darwin: configure: Allow VirtFS on Darwin

2018-06-16 Thread Keno Fischer
Signed-off-by: Keno Fischer --- Makefile.objs | 1 + configure | 22 +++--- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index 7a9828d..c968a9a 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -104,6 +104,7 @@ common-obj-$(CON

[Qemu-devel] [PATCH v3 04/13] 9p: darwin: Handle struct dirent differences

2018-06-16 Thread Keno Fischer
On darwin d_seekoff exists, but is optional and does not seem to be commonly used by file systems. Use `telldir` instead to obtain the seek offset. Signed-off-by: Keno Fischer --- hw/9pfs/9p-synth.c | 2 ++ hw/9pfs/9p.c | 36 2 files changed, 34 insert

[Qemu-devel] [PATCH v3 10/13] 9p: darwin: Provide a fallback implementation for utimensat

2018-06-16 Thread Keno Fischer
This function is new in Mac OS 10.13. Provide a fallback implementation when building against older SDKs. The complication in the definition comes having to separately handle the used SDK version and the target OS version. - If the SDK version is too low (__MAC_10_13 not defined), utimensat is not

[Qemu-devel] [PATCH v3 08/13] 9p: darwin: *xattr_nofollow implementations

2018-06-16 Thread Keno Fischer
This implements the darwin equivalent of the functions that were moved to 9p-util(-linux) earlier in this series in the new 9p-util-darwin file. Signed-off-by: Keno Fischer --- hw/9pfs/9p-util-darwin.c | 64 hw/9pfs/Makefile.objs| 1 + 2 file

[Qemu-devel] [PATCH v3 09/13] 9p: darwin: Compatibility for f/l*xattr

2018-06-16 Thread Keno Fischer
On darwin `fgetxattr` takes two extra optional arguments, and the l* variants are not defined (in favor of an extra flag to the regular variants. Signed-off-by: Keno Fischer --- Makefile| 6 ++ fsdev/virtfs-proxy-helper.c | 9 + hw/9pfs/9p-local.c | 12

[Qemu-devel] [PATCH v3 02/13] 9p: Rename 9p-util -> 9p-util-linux

2018-06-16 Thread Keno Fischer
The current file only has the Linux versions of these functions. Rename the file accordingly and update the Makefile to only build it on Linux. A Darwin version of these will follow later in the series. Signed-off-by: Keno Fischer --- hw/9pfs/9p-util-linux.c | 59

[Qemu-devel] [PATCH v3 05/13] 9p: darwin: Explicitly cast comparisons of mode_t with -1

2018-06-16 Thread Keno Fischer
Comparisons of mode_t with -1 require an explicit cast, since mode_t is unsigned on Darwin. Signed-off-by: Keno Fischer --- hw/9pfs/9p-local.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/9pfs/9p-local.c b/hw/9pfs/9p-local.c index d713983..98d4073 100644 --- a/hw/9p

[Qemu-devel] [PATCH v3 01/13] 9p: linux: Fix a couple Linux assumptions

2018-06-16 Thread Keno Fischer
From: Keno Fischer - Guard Linux only headers. - Add qemu/statfs.h header to abstract over the which headers are needed for struct statfs - Define `ENOATTR` only if not only defined (it's defined in system headers on Darwin). Signed-off-by: Keno Fischer --- fsdev/file-op-9p.h

[Qemu-devel] [PATCH v3 00/13] 9p: Add support for Darwin

2018-06-16 Thread Keno Fischer
Hi Greg, this is the rebased version of the patch series adding support for building the 9p server on Darwin. As you know a number of patches from the v2 version of this series are already landed. This is the remaining patches. Other than rebasing, there is onnly one minor change in patch 11. Ken

[Qemu-devel] [PATCH v3 07/13] 9p: darwin: Provide a compatibility definition for XATTR_SIZE_MAX

2018-06-16 Thread Keno Fischer
Signed-off-by: Keno Fischer --- hw/9pfs/9p.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c index e650459..abfb8dc 100644 --- a/hw/9pfs/9p.c +++ b/hw/9pfs/9p.c @@ -3374,6 +3374,13 @@ out_nofid: v9fs_string_free(&name); } +#if defined(CONFIG_DARWIN)

[Qemu-devel] [PATCH v3 03/13] 9p: darwin: Handle struct stat(fs) differences

2018-06-16 Thread Keno Fischer
Signed-off-by: Keno Fischer --- fsdev/virtfs-proxy-helper.c | 14 +++--- hw/9pfs/9p-proxy.c | 17 ++--- hw/9pfs/9p-synth.c | 2 ++ hw/9pfs/9p.c| 16 ++-- 4 files changed, 41 insertions(+), 8 deletions(-) diff --git a/fsdev/virtfs

[Qemu-devel] [PATCH v3 06/13] 9p: darwin: Ignore O_{NOATIME, DIRECT}

2018-06-16 Thread Keno Fischer
Darwin doesn't have either of these flags. Darwin does have F_NOCACHE, which is similar to O_DIRECT, but has different enough semantics that other projects don't generally map them automatically. In any case, we don't support O_DIRECT on Linux at the moment either. Signed-off-by: Keno Fischer ---

Re: [Qemu-devel] [PATCH v7 29/54] tests/docker/Makefile.include: fix mipsel-cross dependancy

2018-06-16 Thread Philippe Mathieu-Daudé
On 06/15/2018 04:46 PM, Alex Bennée wrote: > This got broken in commit 4319db7 but generally only shows up when you > try and do massive parallel builds on fresh machines. > > Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé > --- > tests/docke

Re: [Qemu-devel] [PATCH v7 12/54] tests/tcg/multiarch: don't hard code paths/ports for linux-test

2018-06-16 Thread Philippe Mathieu-Daudé
Hi Alex, On 06/15/2018 04:46 PM, Alex Bennée wrote: > The fixed path and ports get in the way of running our tests and > builds in parallel. Instead of using TESTPATH we use mkdtemp() and > instead of a fixed port we allow the kernel to assign one and query it > afterwards. > > Signed-off-by: Ale

[Qemu-devel] [Bug 1721222] Re: qemu crashes with Assertion `fdctrl->dma' failed

2018-06-16 Thread Thomas Huth
Fixed here: https://git.qemu.org/?p=qemu.git;a=commitdiff;h=b3da551389c86ce214 ** Changed in: qemu Status: Confirmed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1721222 Titl

Re: [Qemu-devel] [PATCH v7 13/54] tests/tcg/multiarch: move most output to stdout

2018-06-16 Thread Thomas Huth
On 15.06.2018 21:46, Alex Bennée wrote: > The default test run outputs to stdout so it can be re-directed. > Errors are still reported to stderr. > > Signed-off-by: Alex Bennée > Reviewed-by: Philippe Mathieu-Daudé > Tested-by: Philippe Mathieu-Daudé > Reviewed-by: Richard Henderson Reviewed-

Re: [Qemu-devel] [PATCH v7 12/54] tests/tcg/multiarch: don't hard code paths/ports for linux-test

2018-06-16 Thread Thomas Huth
On 15.06.2018 21:46, Alex Bennée wrote: > The fixed path and ports get in the way of running our tests and > builds in parallel. Instead of using TESTPATH we use mkdtemp() and > instead of a fixed port we allow the kernel to assign one and query it > afterwards. > > Signed-off-by: Alex Bennée > -

[Qemu-devel] [Bug 1777252] Re: tests/Makefile.include trying to add linking library '-lutil' that break the build on Solaris

2018-06-16 Thread Thomas Huth
I'm sorry, but Solaris is currently unsupported and might get removed in a future release, see: https://wiki.qemu.org/ChangeLog/2.12#Warning:_unsupported_host_systems So it would be great if you could contribute patches, or find someone who's willing to maintain QEMU on Solaris. -- You receive

[Qemu-devel] [Bug 1777252] [NEW] tests/Makefile.include trying to add linking library '-lutil' that break the build on Solaris

2018-06-16 Thread WHR
Public bug reported: Building script 'tests/Makefile.include' contains following code ``` ifeq ($(CONFIG_POSIX),y) LIBS += -lutil endif ``` library -lutil is not available on Solaris, so the building will failed, like ``` ld: fatal: library -lutil: not found make: *** [SOMEWHERE/src/qemu-2.12.0/r

[Qemu-devel] Design Decision for KVM based anti rootkit

2018-06-16 Thread Ahmed Soliman
Following up on these threads: - https://marc.info/?l=kvm&m=151929803301378&w=2 - http://www.openwall.com/lists/kernel-hardening/2018/02/22/18 I lost the original emails so I couldn't reply to them, and also sorry for being late, it was the end of semester exams. I was adviced on #qemu and #kerne

[Qemu-devel] [Bug 1777236] [NEW] NVME is missing support for mandatory features through "Get/Set Feature" command

2018-06-16 Thread Shimi Gersner
Public bug reported: The following are features which are marked as mandatory by the 1.2 specification (NVMe 1.2, Section 5.14.1, Figure 108) as currently not implemented - 0x1 Arbitration - 0x2 Power Management - 0x4 Temperature Threshold - 0x5 Error Recovery - 0x6 Interrupt Coalescing -

[Qemu-devel] [Bug 1777235] [NEW] NVME is missing support for Get Log Page command

2018-06-16 Thread Shimi Gersner
Public bug reported: "Get Log Page" is a mandatory admin command by the specification (NVMe 1.2, Section 5, Figure 40) currently not implemented by device. ** Affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- de

[Qemu-devel] [Bug 1777232] [NEW] NVME fails on big writes

2018-06-16 Thread Shimi Gersner
Public bug reported: NVME Compliance test 8:3.3.0 tries to write and read back big chunks of pages. Currently, on the latest QEMU operation of size 1024 blocks will fail when device is backed by a file. NVME specification has several types of data transfers from guests, one of the is the PRP list

[Qemu-devel] [Bug 1777226] [NEW] qemu-user warnings confuse userland applications

2018-06-16 Thread John Paul Adrian Glaubitz
Public bug reported: I recently observed that warning messages emitted by qemu-user can confuse applications when reading from stdout/stderr. This was observed with the configure script of OpenJDK-11 on qemu-sh4: configure: Found potential Boot JDK using configure arguments configure: Potential B

[Qemu-devel] Kernel requirement for membarriers feature

2018-06-16 Thread Kim Højgaard-Hansen
Hi, When the membarriers feature was introduced, the kernel requirement was set to 4.14, however if my understanding of what is needed is correct that is rather strict? http://lists.gnu.org/archive/html/qemu-devel/2018-03/msg02748.html As far as i can tell the feature was introduced in 4.3 see: