Skip to content

Commit a237650

Browse files
committed
Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' into staging
Bugfixes. # gpg: Signature made Sat 24 Jul 2021 07:11:18 BST # gpg: using RSA key F13338574B662389866C7682BFFBD25F78C7AE83 # gpg: issuer "[email protected]" # gpg: Good signature from "Paolo Bonzini <[email protected]>" [full] # gpg: aka "Paolo Bonzini <[email protected]>" [full] # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4 E2F7 7E15 100C CD36 69B1 # Subkey fingerprint: F133 3857 4B66 2389 866C 7682 BFFB D25F 78C7 AE83 * remotes/bonzini-gitlab/tags/for-upstream: qom: use correct field name when getting/setting alias properties qapi: introduce forwarding visitor gitlab: only let pages be published from default branch MAINTAINERS: Add memory_mapping.h and memory_mapping.c to "Memory API" MAINTAINERS: Add Peter Xu and myself as co-maintainer of "Memory API" MAINTAINERS: Replace Eduardo as "Host Memory Backends" maintainer i386: do not call cpudef-only models functions for max, host, base target/i386: Added consistency checks for CR3 meson: fix dependencies for modinfo ozbenh#2 Signed-off-by: Peter Maydell <[email protected]>
2 parents a146af8 + cbc94d9 commit a237650

File tree

15 files changed

+687
-67
lines changed

15 files changed

+687
-67
lines changed

.gitlab-ci.d/buildtest.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,17 @@ build-tools-and-docs-debian:
663663

664664
# Prepare for GitLab pages deployment. Anything copied into the
665665
# "public" directory will be deployed to $USER.gitlab.io/$PROJECT
666+
#
667+
# GitLab publishes from any branch that triggers a CI pipeline
668+
#
669+
# For the main repo we don't want to publish from 'staging'
670+
# since that content may not be pushed, nor do we wish to
671+
# publish from 'stable-NNN' branches as that content is outdated.
672+
# Thus we restrict to just the default branch
673+
#
674+
# For contributor forks we want to publish from any repo so
675+
# that users can see the results of their commits, regardless
676+
# of what topic branch they're currently using
666677
pages:
667678
image: $CI_REGISTRY_IMAGE/qemu/debian-amd64:latest
668679
stage: test
@@ -681,3 +692,10 @@ pages:
681692
artifacts:
682693
paths:
683694
- public
695+
rules:
696+
- if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
697+
when: on_success
698+
- if: '$CI_PROJECT_NAMESPACE == "qemu-project"'
699+
when: never
700+
- if: '$CI_PROJECT_NAMESPACE != "qemu-project"'
701+
when: on_success

MAINTAINERS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2452,15 +2452,19 @@ F: tests/tcg/multiarch/gdbstub/
24522452

24532453
Memory API
24542454
M: Paolo Bonzini <[email protected]>
2455+
M: Peter Xu <[email protected]>
2456+
M: David Hildenbrand <[email protected]>
24552457
S: Supported
24562458
F: include/exec/ioport.h
24572459
F: include/exec/memop.h
24582460
F: include/exec/memory.h
24592461
F: include/exec/ram_addr.h
24602462
F: include/exec/ramblock.h
2463+
F: include/sysemu/memory_mapping.h
24612464
F: softmmu/dma-helpers.c
24622465
F: softmmu/ioport.c
24632466
F: softmmu/memory.c
2467+
F: softmmu/memory_mapping.c
24642468
F: softmmu/physmem.c
24652469
F: include/exec/memory-internal.h
24662470
F: scripts/coccinelle/memory-region-housekeeping.cocci
@@ -2547,7 +2551,7 @@ S: Maintained
25472551
F: net/netmap.c
25482552

25492553
Host Memory Backends
2550-
M: Eduardo Habkost <ehabkost@redhat.com>
2554+
M: David Hildenbrand <david@redhat.com>
25512555
M: Igor Mammedov <[email protected]>
25522556
S: Maintained
25532557
F: backends/hostmem*.c

include/qapi/forward-visitor.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Forwarding visitor
3+
*
4+
* Copyright Red Hat, Inc. 2021
5+
*
6+
* Author: Paolo Bonzini <[email protected]>
7+
*
8+
* This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
9+
* See the COPYING.LIB file in the top-level directory.
10+
*
11+
*/
12+
13+
#ifndef FORWARD_VISITOR_H
14+
#define FORWARD_VISITOR_H
15+
16+
#include "qapi/visitor.h"
17+
18+
typedef struct ForwardFieldVisitor ForwardFieldVisitor;
19+
20+
/*
21+
* The forwarding visitor only expects a single name, @from, to be passed for
22+
* toplevel fields. It is converted to @to and forwarded to the @target visitor.
23+
* Calls within a struct are forwarded without changing the name.
24+
*/
25+
Visitor *visitor_forward_field(Visitor *target, const char *from, const char *to);
26+
27+
#endif

meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2373,9 +2373,9 @@ foreach d, list : target_modules
23732373
# FIXME: Should use sl.extract_all_objects(recursive: true) too.
23742374
modinfo_files += custom_target(module_name + '.modinfo',
23752375
output: module_name + '.modinfo',
2376-
input: target_module_ss.sources(),
2376+
input: target_module_ss.sources() + genh,
23772377
capture: true,
2378-
command: [modinfo_collect, '--target', target, '@INPUT@'])
2378+
command: [modinfo_collect, '--target', target, target_module_ss.sources()])
23792379
endif
23802380
endif
23812381
endforeach

qapi/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ util_ss.add(files(
22
'opts-visitor.c',
33
'qapi-clone-visitor.c',
44
'qapi-dealloc-visitor.c',
5+
'qapi-forward-visitor.c',
56
'qapi-util.c',
67
'qapi-visit-core.c',
78
'qobject-input-visitor.c',

0 commit comments

Comments
 (0)