[Qemu-devel] [PATCH v7 02/14] qapi: Prepare for errors during check()

2015-10-03 Thread Eric Blake
The next few patches will start migrating error checking from ad hoc parse methods into the QAPISchema*.check() methods. But for an error message to display, we first have to fix the overall 'try' to catch those errors. We also want to enable a few more assertions, such as making sure every attem

[Qemu-devel] [PATCH v7 11/14] qapi: Move duplicate member checks to schema check()

2015-10-03 Thread Eric Blake
With the previous commit, we have two different locations for detecting member name clashes - one at parse time, and another at QAPISchema*.check() time. Consolidate some of the checks into a single place, which is also in line with our TODO to eventually move all of the parse time semantic checki

[Qemu-devel] [PATCH v7 05/14] qapi: Lazy creation of array types

2015-10-03 Thread Eric Blake
Commit ac88219a had several TODO markers about whether we needed to automatically create the corresponding array type alongside any other type. It turns out that most of the time, we don't! As part of lazy creation of array types, this patch now assigns an 'info' to array types at their point of

[Qemu-devel] [PATCH v7 14/14] qapi: Detect base class loops

2015-10-03 Thread Eric Blake
It should be fairly obvious that qapi base classes need to form an acyclic graph, since QMP cannot specify the same key more than once, while base classes are included as flat members alongside other members added by the child. But the old check_member_clash() parser function was not prepared to c

[Qemu-devel] [PATCH v7 12/14] qapi: Move duplicate enum value checks to schema check()

2015-10-03 Thread Eric Blake
Similar to the previous commit, move the detection of a collision in enum values from parse time to QAPISchemaEnumType.check(). This happens to also detect collisions in union branch names, so for a decent error message, we have to determine if the enum is implicit (and if so where the real collisi

[Qemu-devel] [PATCH v7 00/14] post-introspection cleanups, subset B

2015-10-03 Thread Eric Blake
Pending prerequisite: Markus' qapi-next branch (which has my subset A patches): git://repo.or.cz/qemu/armbru.git qapi-next http://thread.gmane.org/gmane.comp.emulators.qemu/365827/focus=366351 Also available as a tag at this location: git fetch git://repo.or.cz/qemu/ericb.git qapi-cleanupv7b and

[Qemu-devel] [PATCH v7 08/14] qapi: Track location that created an implicit type

2015-10-03 Thread Eric Blake
A future patch will move some error checking from the parser to the various QAPISchema*.check() methods, which run only after parsing completes. It will thus be possible to create a python instance representing an implicit QAPI type that parses fine but will fail validation during check(). Since

[Qemu-devel] [PATCH v7 13/14] qapi: Add test for alternate branch 'kind' clash

2015-10-03 Thread Eric Blake
Rename alternate-clash to alternate-clash-members, and add a new test alternate-clash-type. While similar to the earlier addition of union-clash-type, we have one major difference: a future patch will be simplifying alternates to not need an implict AlternateKind enum, but we still need to detect

[Qemu-devel] [PATCH v7 06/14] qapi: Create simple union type member earlier

2015-10-03 Thread Eric Blake
For simple unions, we were creating the implicit 'type' tag member during the QAPISchemaObjectTypeVariants constructor. This is different from every other implicit QAPISchemaEntity object, which get created by QAPISchema methods. Hoist the creation to the caller (renaming _make_tag_enum() to _make

[Qemu-devel] [PATCH v7 07/14] qapi: Move union tag quirks into subclass

2015-10-03 Thread Eric Blake
Right now, simple unions have a quirk of using 'kind' in the C struct to match the QMP wire name 'type'. This has resulted in messy clients each doing special cases. While we plan to eventually rename things to match, it is better in the meantime to consolidate the quirks into a special subclass,

[Qemu-devel] [PATCH v7 09/14] qapi: Track owner of each object member

2015-10-03 Thread Eric Blake
Future commits will migrate semantic checking away from parsing and over to the various QAPISchema*.check() methods. But to report an error message about an incorrect semantic use of a member of an object type, it helps to know which type, command, or event owns the member. Rather than making all

[Qemu-devel] [PATCH v7 04/14] qapi: Don't use info as witness of implicit object type

2015-10-03 Thread Eric Blake
A future patch will enable error reporting from the various QAPISchema*.check() methods. But to report an error related to an implicit type, we'll need to associate a location with the type (the same location as the top-level entity that is causing the creation of the implicit type), and once we d

[Qemu-devel] [PATCH v7 10/14] qapi: Detect collisions in C member names

2015-10-03 Thread Eric Blake
Detect attempts to declare two object members that would result in the same C member name, by keying the 'seen' dictionary off of the C name rather than the qapi name. It also requires passing info through some of the check() methods. This fixes two previously-broken tests, and the resulting erro

Re: [Qemu-devel] [PATCH] Add syscalls for -runas and -chroot tothe seccomp sandbox

2015-10-03 Thread Namsun Ch'o
> If we intend seccomp to protect against flaws during QEMU setup, then having > it earlier is neccessary. eg QEMU opening a corrupt qcow2 image which might > exploit QEMU before the guest CPUs start. > If the latter is the case, then we could start with a relaxed seccomp > sandbox which included

Re: [Qemu-devel] [PATCH v3] Add argument filters to the seccomp sandbox

2015-10-03 Thread Namsun Ch'o
> The pull request will be delayed a little bit due to some new patches > incoming. Let's just set an agreement on how to approach regarding the > "-runas and -chroot" patch and will prepare just a single batch for pull > reuqest to Peter. I also noticed that I had made that patch over the chroot

Re: [Qemu-devel] [PATCH] Add syscalls for -runas and -chroot tothe seccomp sandbox

2015-10-03 Thread Namsun Ch'o
> Our intention since the beginning was to protect the host from the > illegal guest operations. But you do have an interesting point about > flaws on qemu itself. Perhaps this might be something I could work on to > improve (start a bigger whitelist and get it tighter before guest > launches). Th

Re: [Qemu-devel] [PATCH] target-tilegx: Implement v2mults instruction

2015-10-03 Thread Chen Gang
On 10/3/15 10:43, gang.chen.5...@gmail.com wrote: > diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c > index 6853628..40f9b12 100644 > --- a/target-tilegx/translate.c > +++ b/target-tilegx/translate.c > @@ -990,6 +990,7 @@ static TileExcp gen_rrr_opcode(DisasContext *dc, unsigned

Re: [Qemu-devel] [PATCH] target-tilegx: Use TILEGX_EXCP_OPCODE_UNKNOWN instead of TILEGX_EXCP_OPCODE_UNIMPLEMENTED for some cases

2015-10-03 Thread Chen Gang
Oh, sorry, also one modification about TILEGX_EXCP_OPCODE_UNIMPLEMENTED left. I shall send patch v2 for it. Thanks. On 10/3/15 16:54, gang.chen.5...@gmail.com wrote: > From: Chen Gang > > For some cases, they are for TILEGX_EXCP_OPCODE_UNKNOWN, not for > TILEGX_EXCP_OPCODE_UNIMPLEMENTED. > >

Re: [Qemu-devel] [Qemu-discuss] TCP options ipv4 and ipv6 have no effect

2015-10-03 Thread Sair, Umair
If I am understanding correct, you are saying that we should set addr->has_ipv6 and addr->has_ipv4 to true in any case, then in my opinion we should simply ignore the value of addr->has_ipv* while evaluating the value of ipv4 and ipv6 variables in inet_addr_to_opts (bool ipv4 = addr->ipv4; bool

Re: [Qemu-devel] [Qemu-discuss] TCP options ipv4 and ipv6 have no effect

2015-10-03 Thread Liviu Ionescu
> On 02 Oct 2015, at 21:20, Sair, Umair wrote: > >> On linux it always runs on IPv4 >> and on Windows, it always runs on IPv6. Can you please help me out in >> resolving this problem? I remember I had the same problem when building GNU ARM Eclipse QEMU. You can take a look at: https://githu

[Qemu-devel] [PATCH] target-tilegx: Use TILEGX_EXCP_OPCODE_UNKNOWN instead of TILEGX_EXCP_OPCODE_UNIMPLEMENTED for some cases

2015-10-03 Thread gang . chen . 5i5j
From: Chen Gang For some cases, they are for TILEGX_EXCP_OPCODE_UNKNOWN, not for TILEGX_EXCP_OPCODE_UNIMPLEMENTED. When analyzing issues, the related output is incorrect (e.g. grep UIMP in the output log for finding qemu tilegx umimplementation issues). Signed-off-by: Chen Gang --- target-til

Re: [Qemu-devel] [PATCH qemu] vfio_pci: Allow disabling quirks

2015-10-03 Thread Alexey Kardashevskiy
On 10/03/2015 12:20 AM, Alex Williamson wrote: On Fri, 2015-10-02 at 17:58 +1000, Alexey Kardashevskiy wrote: On 09/10/2015 04:34 AM, Alex Williamson wrote: On Wed, 2015-09-09 at 17:17 +1000, Alexey Kardashevskiy wrote: On 07/20/2015 12:40 PM, Alexey Kardashevskiy wrote: On 07/20/2015 03:15 A

Re: [Qemu-devel] [RFC v1 0/2] ARM MPTimer fixes and refactoring

2015-10-03 Thread Dmitry Osipenko
20.09.2015 20:48, Peter Crosthwaite пишет: On Sun, Jul 5, 2015 at 1:58 PM, Peter Crosthwaite wrote: On Sun, Jul 5, 2015 at 1:47 PM, Dmitry Osipenko wrote: 05.07.2015 23:26, Peter Crosthwaite пишет: Hi Dmitry, Based on my comment earlier, this is what I came up with RE consolidation of thos

[Qemu-devel] [PATCH] linux-user: correctly align target_epoll_event

2015-10-03 Thread Laurent Vivier
According to comments in /usr/include/linux/eventpoll.h, poll_event is packed only on x86_64. And to be sure fields are correctly aligned in epoll_data, use abi_XXX types for all of them. Moreover, fd type is wrong: fd is int, not ulong. This has been tested with a ppc guest on an x86_64 host: w

Re: [Qemu-devel] [PULL 12/22] vhost: rename VHOST_RESET_OWNER to VHOST_RESET_DEVICE

2015-10-03 Thread Michael S. Tsirkin
On Fri, Oct 02, 2015 at 06:18:51PM +0200, Paolo Bonzini wrote: > > > On 24/09/2015 15:20, Michael S. Tsirkin wrote: > > From: Yuanhan Liu > > > > Quote from Michael: > > > > We really should rename VHOST_RESET_OWNER to VHOST_RESET_DEVICE. > > Where is the corresponding Linux patch for thi

Re: [Qemu-devel] [PATCH] s/cpu_get_real_ticks/cpu_get_host_ticks/

2015-10-03 Thread Michael Tokarev
25.09.2015 17:42, Christopher Covington wrote: > This should help clarify the purpose of the function that returns > the host system's CPU cycle count. Applied to -trivial, thank you! /mjt

Re: [Qemu-devel] [PATCH 1/3] Target-microblaze: Remove unnecessary variable

2015-10-03 Thread Michael Tokarev
25.09.2015 11:37, Shraddha Barke wrote: > Compress lines and remove the variable . Applied to -trivial, removing this piece of commit message: --- > Change made using Coccinelle script > > @@ > expression ret; > @@ > - if (ret) return ret; > - return 0; > + return ret; > @@ > local idexpression

Re: [Qemu-devel] [PATCH 3/3] Target-ppc: Remove unnecessary variable

2015-10-03 Thread Michael Tokarev
25.09.2015 11:37, Shraddha Barke wrote: > Compress lines and remove the variable. Applied to -trivial, removing this piece of commit message: --- > Change made using Coccinelle script > > @@ > expression ret; > @@ > - if (ret) return ret; > - return 0; > + return ret; > @@ > local idexpression r

Re: [Qemu-devel] [PATCH] MAINTAINERS: Add NSIS file for W32, W64 hosts

2015-10-03 Thread Michael Tokarev
25.09.2015 23:25, Stefan Weil wrote: > The NSIS installer configuration is maintained by me. Hopefully this is okay to go to -trivial... ;) Thanks! /mjt

Re: [Qemu-devel] [PATCH 21/36] misc: spelling

2015-10-03 Thread Michael Tokarev
25.09.2015 19:08, Eric Blake wrote: > On 09/25/2015 08:03 AM, marcandre.lur...@redhat.com wrote: >> From: Marc-André Lureau >> >> --- >> monitor.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > > Trivial, can be applied now without waiting for pending qapi patches. > > Reviewed-by:

Re: [Qemu-devel] [PATCH 02/36] qapi: add missing @

2015-10-03 Thread Michael Tokarev
Applied to -trivial, thanks! /mjt

Re: [Qemu-devel] [PATCH 2/2] Hw: timer: Remove unnecessary variable

2015-10-03 Thread Michael Tokarev
25.09.2015 17:36, Shraddha Barke wrote: > Compress lines and remove the variable. Applied to -trivial, removing the Coccinelle script from the commit message. Thanks, /mjt

Re: [Qemu-devel] [PATCH 1/2] Hw: char: Remove unnecessary variable

2015-10-03 Thread Michael Tokarev
25.09.2015 17:36, Shraddha Barke wrote: > Compress lines and remove the variable. Applied to -trivial, removing the Coccinelle script from the commit message. Thanks! /mjt

Re: [Qemu-devel] [PATCH] .travis.yml: Run make check for all targets, not just some

2015-10-03 Thread Michael Tokarev
23.09.2015 08:27, David Gibson wrote: > ed173cb ".travis.yml: remove "make check" from main matrix" stopped running > make check for all the Travis build targets for various reasons. It > continued to run make check on one Travis build, which builds for a big > list of all (? nearly all) our suppo

Re: [Qemu-devel] [PATCH] rocker: Use g_new() & friends where that makes obvious sense

2015-10-03 Thread Michael Tokarev
24.09.2015 19:18, Markus Armbruster wrote: > Michael, could you take this one through trivial? Assuming Scott and > Jiri don't mind, and with s/patchas/patch as/ in the commit message. > > Markus Armbruster writes: > >> g_new(T, n) is neater than g_malloc(sizeof(T) * n). It's also safer, >> fo

Re: [Qemu-devel] [PATCH] linux-user: Use g_new() & friends where that makes obvious sense

2015-10-03 Thread Michael Tokarev
24.09.2015 10:18, Stefan Weil wrote: > Am 24.09.2015 um 09:06 schrieb Markus Armbruster: >> Ping? > >> Markus Armbruster writes: > >>> g_new(T, n) is neater than g_malloc(sizeof(T) * n). It's also >>> safer, for two reasons. One, it catches multiplication >>> overflowing size_t. Two, it retu

Re: [Qemu-devel] [PATCH v6 10/12] qapi: Correct error for union branch 'kind' clash

2015-10-03 Thread Eric Blake
On 10/01/2015 10:31 PM, Eric Blake wrote: > The error message when a simple union or alternate contains a > branch named 'kind' is ugly, because it is tied to the Schema > member named 'type'. A future patch will fix the generated C > to match QMP, but until that point, we can hack things with > a

Re: [Qemu-devel] [PATCH v8] hw/arm/virt: Add high MMIO PCI region, 512G in size

2015-10-03 Thread Peter Crosthwaite
On Thu, Sep 24, 2015 at 5:13 PM, Peter Maydell wrote: > On 4 September 2015 at 00:13, Pavel Fedin wrote: >> Peter Maydell wrote: >>> Did you report the bug where the pci controller driver >>> fails to start if the second region is out of its range >>> to the kernel mailing list? (It would be nice

Re: [Qemu-devel] [PATCH v8] hw/arm/virt: Add high MMIO PCI region, 512G in size

2015-10-03 Thread Peter Maydell
On 3 October 2015 at 19:04, Peter Crosthwaite wrote: > On Thu, Sep 24, 2015 at 5:13 PM, Peter Maydell > wrote: >> On 4 September 2015 at 00:13, Pavel Fedin wrote: >>> Peter Maydell wrote: Did you report the bug where the pci controller driver fails to start if the second region is out

Re: [Qemu-devel] [PATCH v2 3/3] exec.c: Collect AddressSpace related fields into a CPUAddressSpace struct

2015-10-03 Thread Edgar E. Iglesias
On Thu, Oct 01, 2015 at 03:29:50PM +0100, Peter Maydell wrote: > Gather up all the fields currently in CPUState which deal with the CPU's > AddressSpace into a separate CPUAddressSpace struct. This paves the way > for allowing the CPU to know about more than one AddressSpace. > > The rearrangement

Re: [Qemu-devel] [PATCH v2 0/8] arm: Steps towards EL2 support round 5

2015-10-03 Thread Edgar E. Iglesias
On Thu, Oct 01, 2015 at 05:49:20PM -0700, Edgar E. Iglesias wrote: > From: "Edgar E. Iglesias" > > Hi, > > Another round of patches towards EL2 support. This one adds partial > support for 2-stage MMU for AArch64. I've marked it RFC because I > expect a few iterations. Once we can settle on the

[Qemu-devel] QEMU+Linux ARMv7A current state

2015-10-03 Thread Peter Crosthwaite
Hi, I have done an audit of the ARMv7 boards to see what can boot a vanilla linux kernel. The basic approach is to build ARM multi_v7_defconfig kernel and boot QEMU using the DTBs built out by the kernel. The intersection of what mainline Linux has a DTB for and what QEMU models is tested. The boa

Re: [Qemu-devel] QEMU+Linux ARMv7A current state

2015-10-03 Thread Peter Maydell
On 3 October 2015 at 22:31, Peter Crosthwaite wrote: > Hi, > > I have done an audit of the ARMv7 boards to see what can boot a > vanilla linux kernel. The basic approach is to build ARM > multi_v7_defconfig kernel and boot QEMU using the DTBs built out by > the kernel. The intersection of what mai

Re: [Qemu-devel] QEMU+Linux ARMv7A current state

2015-10-03 Thread Peter Crosthwaite
On Sat, Oct 3, 2015 at 2:51 PM, Peter Maydell wrote: > On 3 October 2015 at 22:31, Peter Crosthwaite > wrote: >> Hi, >> >> I have done an audit of the ARMv7 boards to see what can boot a >> vanilla linux kernel. The basic approach is to build ARM >> multi_v7_defconfig kernel and boot QEMU using t

[Qemu-devel] [PATCH v3 1/9] target-arm: Add HPFAR_EL2

2015-10-03 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h| 1 + target-arm/helper.c | 12 2 files changed, 13 insertions(+) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index cc1578c..895f2c2 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -2

[Qemu-devel] [PATCH v3 3/9] target-arm: Add support for S2 page-table protection bits

2015-10-03 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-arm/helper.c | 41 + 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 507324f..610f1b5 100644 --- a/target-arm/helper.c +++

[Qemu-devel] [PATCH v3 7/9] target-arm: Add S2 translation to 32bit S1 PTWs

2015-10-03 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Add support for applying S2 translation to 32bit S1 page-table walks. Signed-off-by: Edgar E. Iglesias --- target-arm/helper.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index f

[Qemu-devel] [PATCH v3 0/9] arm: Steps towards EL2 support round 5

2015-10-03 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Hi, Another round of patches towards EL2 support. This one adds partial support for 2-stage MMU. The AArch32/ARMv7 support is untested. Some of the details of error reporting are intentionally missing, I was thinking to add those incrementally as they get quite involve

[Qemu-devel] [PATCH v3 4/9] target-arm: Avoid inline for get_phys_addr

2015-10-03 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Avoid inline for get_phys_addr() to prepare for future recursive use. Reviewed-by: Peter Maydell Signed-off-by: Edgar E. Iglesias --- target-arm/helper.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/target-arm/helper.c b/target

[Qemu-devel] [PATCH v3 8/9] target-arm: Route S2 MMU faults to EL2

2015-10-03 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-arm/op_helper.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/target-arm/op_helper.c b/target-arm/op_helper.c index d4715f4..2ccd1c9 100644 --- a/target-arm/op_helper.c +++ b/target-arm/op_hel

[Qemu-devel] [PATCH v3 2/9] target-arm: Add computation of starting level for S2 PTW

2015-10-03 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" The starting level for S2 pagetable walks is computed differently from the S1 starting level. Implement the S2 variant. Signed-off-by: Edgar E. Iglesias --- target-arm/helper.c | 39 +++ 1 file changed, 27 insertions(+), 12 deletion

[Qemu-devel] [PATCH v3 5/9] target-arm: Add ARMMMUFaultInfo

2015-10-03 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Introduce ARMMMUFaultInfo to propagate MMU Fault information across the MMU translation code path. This is in preparation for adding State-2 translation. No functional changes. Signed-off-by: Edgar E. Iglesias --- target-arm/helper.c| 32 -

[Qemu-devel] [PATCH v3 6/9] target-arm: Add S2 translation to 64bit S1 PTWs

2015-10-03 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Add support for applying S2 translation to 64bit S1 page-table walks. Signed-off-by: Edgar E. Iglesias --- target-arm/helper.c| 50 -- target-arm/op_helper.c | 4 ++-- 2 files changed, 50 insertions(+), 4 deletions(

[Qemu-devel] [PATCH v3 9/9] target-arm: Add support for S1 + S2 MMU translations

2015-10-03 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-arm/helper.c | 44 +--- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index c108248..0ec5909 100644 --- a/target-arm/helper.c

Re: [Qemu-devel] QEMU+Linux ARMv7A current state

2015-10-03 Thread Peter Crosthwaite
On Sat, Oct 3, 2015 at 3:14 PM, Peter Crosthwaite wrote: > On Sat, Oct 3, 2015 at 2:51 PM, Peter Maydell > wrote: >> On 3 October 2015 at 22:31, Peter Crosthwaite >> wrote: >>> Hi, >>> vexpress: >>> >>> vexpress boots up to rootfs probing, however the only storage media >>> that seems to be su

[Qemu-devel] [PATCH v3 3/4] kobject: export kset_find_obj() for module use

2015-10-03 Thread Gabriel L. Somlo
From: Gabriel Somlo Signed-off-by: Gabriel Somlo --- lib/kobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/kobject.c b/lib/kobject.c index 3e3a5c3..bea2c9b 100644 --- a/lib/kobject.c +++ b/lib/kobject.c @@ -842,6 +842,7 @@ struct kobject *kset_find_obj(struct kset *kset, const c

[Qemu-devel] [PATCH v3 2/4] firmware: use acpi to detect QEMU fw_cfg device for sysfs fw_cfg driver

2015-10-03 Thread Gabriel L. Somlo
From: Gabriel Somlo Instead of blindly probing fw_cfg registers at known IOport and MMIO locations, use the ACPI subsystem to determine whether a QEMU fw_cfg device is present, and, if found, to initialize it. This limits portability to architectures which support ACPI (x86 and UEFI-enabled aarc

[Qemu-devel] [PATCH v3 4/4] firmware: create directory hierarchy for sysfs fw_cfg entries

2015-10-03 Thread Gabriel L. Somlo
From: Gabriel Somlo Each fw_cfg entry of type "file" has an associated 56-char, nul-terminated ASCII string which represents its name. While the fw_cfg device doesn't itself impose any specific naming convention, QEMU developers have traditionally used path name semantics (i.e. "etc/acpi/rsdp") t

[Qemu-devel] [PATCH v3 0/4] SysFS driver for QEMU fw_cfg device

2015-10-03 Thread Gabriel L. Somlo
From: "Gabriel Somlo" Allow access to QEMU firmware blobs, passed into the guest VM via the fw_cfg device, through SysFS entries. Blob meta-data (e.g. name, size, and fw_cfg key), as well as the raw binary blob data may be accessed. The SysFS access location is /sys/firmware/qemu_fw_cfg/... and

[Qemu-devel] [PATCH v3 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2015-10-03 Thread Gabriel L. Somlo
From: Gabriel Somlo Make fw_cfg entries of type "file" available via sysfs. Entries are listed under /sys/firmware/qemu_fw_cfg/by_key, in folders named after each entry's selector key. Filename, selector value, and size read-only attributes are included for each entry. Also, a "raw" attribute all

Re: [Qemu-devel] QEMU+Linux ARMv7A current state

2015-10-03 Thread Guenter Roeck
On 10/03/2015 02:31 PM, Peter Crosthwaite wrote: Hi, I have done an audit of the ARMv7 boards to see what can boot a vanilla linux kernel. The basic approach is to build ARM multi_v7_defconfig kernel and boot QEMU using the DTBs built out by the kernel. The intersection of what mainline Linux ha

Re: [Qemu-devel] QEMU+Linux ARMv7A current state

2015-10-03 Thread Peter Crosthwaite
On Sat, Oct 3, 2015 at 5:21 PM, Guenter Roeck wrote: > On 10/03/2015 02:31 PM, Peter Crosthwaite wrote: >> >> Hi, >> >> I have done an audit of the ARMv7 boards to see what can boot a >> vanilla linux kernel. The basic approach is to build ARM >> multi_v7_defconfig kernel and boot QEMU using the D

Re: [Qemu-devel] [PATCH 1/2] target-i386: Use 1UL for bit shift

2015-10-03 Thread Kevin O'Connor
On Fri, Oct 02, 2015 at 02:07:32PM +0200, Paolo Bonzini wrote: > On 02/10/2015 13:14, Laszlo Ersek wrote: > > On 10/02/15 10:34, Paolo Bonzini wrote: > >> On 01/10/2015 21:17, Laszlo Ersek wrote: > >>> - In the firmware, allocate an array of bytes, dynamically. This array > >>> will have no decla

[Qemu-devel] [PATCH v7 03/14] qapi: Drop redundant alternate-good test

2015-10-03 Thread Eric Blake
The alternate-good.json test was already covered by qapi-schema-test.json. As future commits will be tweaking how alternates are laid out, removing the duplicate test now reduces churn. Signed-off-by: Eric Blake --- v7: new patch --- tests/Makefile| 1 - tests/qapi-sch

[Qemu-devel] [PATCH v7 01/14] qapi: Use predicate callback to determine visit filtering

2015-10-03 Thread Eric Blake
Previously, qapi-types and qapi-visit filtered out implicit objects during visit_object_type() by using 'info' (works since implicit objects do not [yet] have associated info); meanwhile qapi-introspect filtered out all schema types on the first pass by returning a python type from visit_begin(), w